mirror of
https://github.com/ceph/ceph
synced 2024-12-23 20:03:56 +00:00
3aae5ca6fd
/bin/bash is a Linuxism. Other operating systems install bash to different paths. Use /usr/bin/env in shebangs to find bash. Signed-off-by: Alan Somers <asomers@gmail.com>
38 lines
861 B
Bash
Executable File
38 lines
861 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
dir=`dirname $0`
|
|
|
|
CEPH_TOOL='./ceph'
|
|
$CEPH_TOOL || CEPH_TOOL='ceph'
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/prepare.sh
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/pri_nul.sh
|
|
rm ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/rem_nul.sh
|
|
rm ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/pri_pri.sh
|
|
rm ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/rem_pri.sh
|
|
rm ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/rem_rem.sh
|
|
rm ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/pri_nul.sh
|
|
rm -r ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/pri_pri.sh
|
|
rm -r ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/dir_pri_pri.sh
|
|
rm -r ./?/* || true
|
|
|
|
CEPH_ARGS=$CEPH_ARGS CEPH_TOOL=$CEPH_TOOL $dir/dir_pri_nul.sh
|
|
rm -r ./?/* || true
|
|
|