summaryrefslogtreecommitdiffstats
path: root/src/init-ceph.in
diff options
context:
space:
mode:
authorMohamad Gebai <mgebai@suse.com>2017-04-20 21:40:13 +0200
committerMohamad Gebai <mgebai@suse.com>2017-04-20 21:52:08 +0200
commit885c88e0b10234b137a8ee6f85db1ea86a003241 (patch)
tree653800d76a96d963327becc4f5c290df52c0aa4c /src/init-ceph.in
parentMerge pull request #14262 from guihecheng/rgw_file-fix-rmdir (diff)
downloadceph-885c88e0b10234b137a8ee6f85db1ea86a003241.tar.xz
ceph-885c88e0b10234b137a8ee6f85db1ea86a003241.zip
init-ceph: add ceph libraries path to environment
These libraries are set in vstart.sh, but not in init-ceph. When init-ceph is not invoked through vstart.sh, library paths are missing. Signed-off-by: Mohamad Gebai <mgebai@suse.com>
Diffstat (limited to '')
-rwxr-xr-xsrc/init-ceph.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init-ceph.in b/src/init-ceph.in
index 9a0f95c65bd..c9ecc5d8d58 100755
--- a/src/init-ceph.in
+++ b/src/init-ceph.in
@@ -33,6 +33,10 @@ else
LIBEXECDIR=$CEPH_ROOT/src
ETCDIR=.
ASSUME_DEV=1
+ CEPH_LIB=$CEPH_ROOT/build/lib
+ echo "$PYTHONPATH" | grep -q $CEPH_LIB || export PYTHONPATH=$CEPH_LIB/cython_modules/lib.2:$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
else
BINDIR=@bindir@
SBINDIR=@sbindir@