Handle hostnames with upper-case letters
[webmin.git] / makedebian.pl
index e7ab46b..c4502a9 100755 (executable)
@@ -285,12 +285,13 @@ fi
 host=`hostname`
 ssl=1
 atboot=1
+makeboot=1
 nochown=1
 autothird=1
 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
+export config_dir var_dir perl autoos port login crypt host ssl nochown autothird noperlpath nouninstall nostart allow atboot makeboot
 tempdir=/tmp/.webmin
 if [ ! -d \$tempdir ]; then
        tempdir=/tmp
@@ -312,7 +313,7 @@ if [ "$inetd" != "1" ]; then
        fi
 fi
 if [ "$product" = "usermin" ]; then
-       insserv $baseproduct >/dev/null 2>&1
+       (insserv $baseproduct || update-rc.d $baseproduct defaults) >/dev/null 2>&1
 fi
 cat >/etc/$baseproduct/uninstall.sh <<EOFF
 #!/bin/sh