]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cclass.in: fix libdir definition
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 28 Jul 2010 20:59:00 +0000 (13:59 -0700)
committerSage Weil <sage@newdream.net>
Thu, 29 Jul 2010 16:37:16 +0000 (09:37 -0700)
src/cclass.in

index 6f101c53ddcbd8a2ecb528f0a164c5d92d712325..69513fa8589064ef4b57e57ca7fe721e899613ee 100755 (executable)
@@ -9,6 +9,7 @@ if [ `dirname $0` = "." ] && [ $PWD != "/etc/init.d" ]; then
     BINDIR=.
     [ -e .libs ] && LIBDIR=.libs || LIBDIR=.
     ETCDIR=.
+    libdir=$LIBDIR
 else
     BINDIR=@bindir@
     LIBDIR=@libdir@
@@ -18,6 +19,7 @@ else
     else
        ETCDIR=@sysconfdir@/ceph
     fi
+    libdir="$LIBDIR/rados-classes"
 fi
 
 load_opt="changed"
@@ -43,8 +45,6 @@ err_exit() {
        exit 1
 }
 
-libdir="$LIBDIR/rados-classes"
-
 while [ $# -ge 1 ]; do
 case $1 in
     -L | --libdir )