added basic support for SuSE (patch from Thomas Guettler)
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 22 Mar 2004 23:27:41 +0000 (23:27 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 22 Mar 2004 23:27:41 +0000 (23:27 +0000)
give more hints in errormessages (patch from Thomas Guettler)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1317 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver-build.functions

index b12a5d5..fcde3fa 100644 (file)
@@ -127,6 +127,9 @@ function getDistribution
     elif test -e /etc/debian_version; then
        set -- $(cat /etc/debian_version)
        DISTRIBUTION=deb$1
+    elif test -e /etc/SuSE-release; then
+       set -- $(cat /etc/SuSE-release)
+       DISTRIBUTION=suse$3
     else
        echo \
 "Can not determine distribution; please specify it manually
@@ -141,8 +144,9 @@ function base.initFilesystem
     test -z "$1" || _renameVserverCfg
     test ! -d "$VDIR" -a ! -d "$SETUP_CONFDIR" || {
        echo \
-"vserver-topdirectory and/or configuration exist already;
-please try to use '--force', or remove them manually" >&2
+"vserver-topdirectory '$VDIR' and/or configuration at '$SETUP_CONFDIR'
+exist already; please try to use '--force', or remove them manually"
+>&2
        exit 1
     } >&2