fix ZSLICE exported to scripts
authorDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Sat, 11 Feb 2012 19:17:05 +0000 (20:17 +0100)
committerDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Sat, 11 Feb 2012 19:17:05 +0000 (20:17 +0100)
init.d/_start_stop

index a839641..cf20f39 100755 (executable)
@@ -5,7 +5,7 @@ NAME=`basename $0`
 # generate ZSLICE and SLICE from group name
 export SLICE_GROUP=`echo $NAME | cut -d\- -f1`
 export SLICE=`grep $SLICE_GROUP /var/lib/extrausers/group | cut -d: -f2`
-export ZSLICE=`echo $SLICE | sed 's;^;;'`
+export ZSLICE=`echo $SLICE | sed 's;^/;;'`
 
 _start_stop() {