]> git.proxmox.com Git - ceph.git/blob - ceph/src/mrun
update sources to 12.2.2
[ceph.git] / ceph / src / mrun
1 #!/bin/sh
2
3 [ $# -lt 2 ] && echo "usage: $0 <name> <command> [params...]" && exit 1
4
5 root=`dirname $0`
6 run_name=$1
7 command=$2
8 CEPH_BIN=$root
9 CEPH_CONF_PATH=$root/run/$run_name
10
11 if [ -e CMakeCache.txt ]; then
12 CEPH_BIN=$PWD/bin
13 CEPH_CONF_PATH=$PWD/run/$run_name
14 elif [ -e $root/../build/CMakeCache.txt ]; then
15 cd $root/../build
16 CEPH_BIN=$PWD/bin
17 CEPH_CONF_PATH=$PWD/run/$run_name
18 fi
19
20 shift 2
21
22 $CEPH_BIN/$command -c $CEPH_CONF_PATH/ceph.conf "$@"