Handle case where /tmp/.webmin is missing
authorJamie Cameron <jcameron@webmin.com>
Thu, 1 Oct 2009 04:58:14 +0000 (21:58 -0700)
committerJamie Cameron <jcameron@webmin.com>
Thu, 1 Oct 2009 04:58:14 +0000 (21:58 -0700)
makedebian.pl

index 6d7fb2b..2189330 100755 (executable)
@@ -282,7 +282,11 @@ noperlpath=1
 nouninstall=1
 nostart=1
 export config_dir var_dir perl autoos port login crypt host ssl nochown autothird noperlpath nouninstall nostart allow atboot
-./setup.sh >/tmp/.webmin/$product-setup.out 2>&1
+tempdir=/tmp/.webmin
+if [ ! -d \$tempdir ]; then
+       tempdir=/tmp
+fi
+./setup.sh >$tempdir/$product-setup.out 2>&1
 if [ "$product" = "webmin" ]; then
        grep sudo= /etc/$product/miniserv.conf >/dev/null 2>&1
        if [ "\$?" = 1 ]; then