]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init-ceph: fix python and library paths for vstart 39034/head
authorSage Weil <sage@newdream.net>
Fri, 22 Jan 2021 20:47:54 +0000 (14:47 -0600)
committerSage Weil <sage@newdream.net>
Fri, 22 Jan 2021 20:48:25 +0000 (14:48 -0600)
The current version does not result in a functional mgr after restarting
from a vstart cluster.

Signed-off-by: Sage Weil <sage@newdream.net>
src/init-ceph.in

index bd4ddcf0e5a2f575ccf6d14190021c73a38d4f70..1910fa0eff9c838f8f284faa7dd0e9579e9ce2f0 100755 (executable)
@@ -36,9 +36,9 @@ else
        ETCDIR=.
        ASSUME_DEV=1
        CEPH_LIB=$CEPH_ROOT/${BUILD_DIR}/lib
-       echo "$PYTHONPATH" | grep -q $CEPH_LIB || export PYTHONPATH=$CEPH_LIB/cython_modules/lib.3:$PYTHONPATH
-       echo "$LD_LIBRARY_PATH" | grep -q $CEPH_LIB || export LD_LIBRARY_PATH=$CEPH_LIB:$LD_LIBRARY_PATH
-       echo "$DYLD_LIBRARY_PATH" | grep -q $CEPH_LIB || export DYLD_LIBRARY_PATH=$CEPH_LIB:$DYLD_LIBRARY_PATH
+       echo "$PYTHONPATH" | grep -q $CEPH_LIB || export PYTHONPATH=$CEPH_ROOT/src/pybind:$CEPH_LIB/cython_modules/lib.3:$CEPH_ROOT/src/python-common:$PYTHONPATH
+       echo "$LD_LIBRARY_PATH" | grep -q $CEPH_LIB || export LD_LIBRARY_PATH=$CEPH_LIB:$CEPH_ROOT/${BUILD_DIR}/external/lib:$LD_LIBRARY_PATH
+       echo "$DYLD_LIBRARY_PATH" | grep -q $CEPH_LIB || export DYLD_LIBRARY_PATH=$CEPH_LIB:$CEPH_ROOT/${BUILD_DIR}/external/lib:$DYLD_LIBRARY_PATH
     else
        BINDIR=@bindir@
        SBINDIR=@sbindir@