use $_<prog> (which expands to absolute paths) instead of trusting into a good $PATH
[util-vserver.git] / util-vserver / scripts / vpkg
index 1d0f2c9..2188dfd 100755 (executable)
@@ -19,7 +19,7 @@
 
 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
 test -e "$UTIL_VSERVER_VARS" || {
-    echo "Can not find util-vserver installation; aborting..." >&2
+    echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
     exit 1
 }
 . "$UTIL_VSERVER_VARS"
@@ -84,7 +84,7 @@ case "$style" in
            ## rpm outputs sometimes '(contains no files)', so return
            ## only the valid output
            (get-conffiles)
-               rpm_param=( -qac --pipe "sed '\!^/!p;d'" );;
+               rpm_param=( -qac --pipe "$_SED '\!^/!p;d'" );;
            (install)
                rpm_param=( -Uvh "$@" )
                apt_param=( install "$@" )
@@ -132,6 +132,10 @@ case "$style" in
            cmd=( "$_VSERVER" --silent "$vserver" exec "${cmd[@]}" )
        fi
        ;;
+    (*)
+       echo $"Packagemanagement is not supported for '$style' style" >&2
+       exit 1
+       ;;
 esac
 
 export LANG=C