exit with returncode of '2' when pkgmgmt can not be determined
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 18 Mar 2005 00:23:02 +0000 (00:23 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 18 Mar 2005 00:23:02 +0000 (00:23 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1919 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vpkg

index 69d5b5b..c20ec3e 100755 (executable)
@@ -71,7 +71,7 @@ vdir=$($_VSERVER_INFO "$1" VDIR) || :
 
 style=
 is_external=
-pkgmgmt.guessStyle "$vserver" style || exit 1
+pkgmgmt.guessStyle "$vserver" style || exit 2
 pkgmgmt.isInternal "$vserver"       || is_external=1
 
 cmd=()
@@ -134,7 +134,7 @@ case "$style" in
        ;;
     (*)
        echo $"Packagemanagement is not supported for '$style' style" >&2
-       exit 1
+       exit 2
        ;;
 esac