]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: avoid using relative paths when finding cmake directories
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Jun 2016 20:57:16 +0000 (16:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 30 Jun 2016 20:58:06 +0000 (16:58 -0400)
If the "run" directory is a symbolic link (e.g. to fast storage),
this will fail.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/vstart.sh

index b769a2388071849f705e13a48bb6d73e453d92c7..0c9fcdbef28040f178a39c8959bc7f5e9c41279a 100755 (executable)
@@ -12,8 +12,8 @@ if [ -n "$VSTART_DEST" ]; then
   CEPH_LIB=$SRC_PATH/.libs
 
   if [ -e CMakeCache.txt ]; then
-      CEPH_BIN=$VSTART_DEST/../../bin
-      CEPH_LIB=$VSTART_DEST/../../lib
+      CEPH_BIN=${PWD}/bin
+      CEPH_LIB=${PWD}/lib
   fi
 
   CEPH_CONF_PATH=$VSTART_DEST