fixed http://savannah.nongnu.org/bugs/?func=detailitem&item_id=11570:
[util-vserver.git] / util-vserver / scripts / legacy / vserver
index 7595b09..7c72d04 100755 (executable)
@@ -21,7 +21,7 @@
 
 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
 test -e "$UTIL_VSERVER_VARS" || {
-    echo "Can not find util-vserver installation; aborting..."
+    echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
     exit 1
 }
 . "$UTIL_VSERVER_VARS"
@@ -534,7 +534,7 @@ elif [ "$2" = "start" ] ; then
                        $_SAVE_S_CONTEXT $PKGSTATEDIR/$1.ctx \
                        $_CAPCHROOT $CHROOTOPT . $STARTCMD
                sleep 2
-               test -x $CONFDIR/$1.sh && $CONFDIR/$1.sh post-start $1
+               test ! -x $CONFDIR/$1.sh || $CONFDIR/$1.sh post-start $1
        fi
 elif [ "$2" = "running" ] ; then
        if [ ! -f $PKGSTATEDIR/$1.ctx ] ; then