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