mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
vstart,init-ceph: include build bin/ in $PATH
This allows mgr/cephadm to run radosgw-admin. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
cab87f956b
commit
1ad8811d1b
@ -36,6 +36,8 @@ else
|
||||
ETCDIR=.
|
||||
ASSUME_DEV=1
|
||||
CEPH_LIB=$CEPH_ROOT/${BUILD_DIR}/lib
|
||||
# mgr shells out to radosgw-admin; give it a proper path
|
||||
export PATH=$BINDIR:$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
|
||||
|
@ -22,12 +22,12 @@ debug() {
|
||||
|
||||
prunb() {
|
||||
debug quoted_print "$@" '&'
|
||||
"$@" &
|
||||
PATH=$CEPH_BIN:$PATH "$@" &
|
||||
}
|
||||
|
||||
prun() {
|
||||
debug quoted_print "$@"
|
||||
"$@"
|
||||
PATH=$CEPH_BIN:$PATH "$@"
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user