Not yum
[util-vserver.git] / scripts / vserver-build.functions
index 55ee043..eadef2f 100644 (file)
@@ -155,6 +155,9 @@ function getDistribution
        if test -e /etc/fedora-release; then
            set -- $(cat /etc/fedora-release)
            DISTRIBUTION=fdr$4
+       elif test -e /etc/mandrake-release; then
+           set -- $(cat /etc/mandrake-release)
+           DISTRIBUTION=mdv$4
        elif test -e /etc/redhat-release; then
            set -- $(cat /etc/redhat-release)
            DISTRIBUTION=rh$5
@@ -199,7 +202,7 @@ function base._addGeneratedFile
 function base.initFilesystem
 {
     test -z "$1" || _renameVserverCfg
-    { isDirectoryEmpty "$VDIR" && test  ! -e "$SETUP_CONFDIR"; } || colpanic $"\
+    { isDirectoryEmpty "$VDIR" 1 && test  ! -e "$SETUP_CONFDIR"; } || colpanic $"\
 vserver-topdirectory '$VDIR' and/or configuration at '$SETUP_CONFDIR'
 exist already; please try to use '--force', or remove them manually."