ceph/ceph-menv/mdo.sh
Yehuda Sadeh 30bebc266c ceph-menv: mrun shell environment
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-05-21 13:51:16 -07:00

17 lines
327 B
Bash
Executable File

#!/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 "$@"