]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/gen-corpus.sh: set CEPH_CONF
authorKefu Chai <kchai@redhat.com>
Mon, 12 Apr 2021 10:55:08 +0000 (18:55 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 12 Apr 2021 11:28:47 +0000 (19:28 +0800)
if we happen to run this script on a host where /etc/ceph/ceph.conf is
available, ceph CLI would use it instead. so, point it to $PWD/ceph.conf
instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/script/gen-corpus.sh

index ad2ef09f1a17f5515358ec52734cd1a6bf246c39..8550c2080706c485044e447c6bebfa4dfb90bea2 100755 (executable)
@@ -32,7 +32,8 @@ function run() {
     MON=3 MGR=2 OSD=3 MDS=3 RGW=1 ../src/vstart.sh -n -x
 
     local old_path="$PATH"
-    export PATH="bin:$PATH"
+    export PATH="$PWD/bin:$PATH"
+    export CEPH_CONF="$PWD/ceph.conf"
     ceph osd pool create mypool
     rados -p mypool bench 10 write -b 123
     ceph osd out 0