summaryrefslogtreecommitdiffstats
path: root/ceph-menv/mdo.sh
blob: 443613e6359c590d665b4643c7c64b982b8cbb87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 "$@"