mirror of
https://github.com/ceph/ceph
synced 2024-12-29 06:52:35 +00:00
17 lines
327 B
Bash
17 lines
327 B
Bash
|
#!/bin/bash
|
||
|
cmd=`basename $0`
|
||
|
MENV_ROOT=`dirname $0`/..
|
||
|
|
||
|
if [ -f $MENV_ROOT/.menvroot ]; then
|
||
|
. $MENV_ROOT/.menvroot
|
||
|
fi
|
||
|
|
||
|
[ "$MRUN_CEPH_ROOT" == "" ] && MRUN_CEPH_ROOT=$HOME/ceph
|
||
|
|
||
|
if [ "$MRUN_CLUSTER" == "" ]; then
|
||
|
${MRUN_CEPH_ROOT}/build/bin/$cmd "$@"
|
||
|
exit $?
|
||
|
fi
|
||
|
|
||
|
${MRUN_CEPH_ROOT}/src/mrun $MRUN_CLUSTER $cmd "$@"
|