diff --git a/makedebian.pl b/makedebian.pl index 90ddab561..278b317ac 100755 --- a/makedebian.pl +++ b/makedebian.pl @@ -331,14 +331,14 @@ if [ "$product" = "webmin" ]; then fi fi rm -f /var/lock/subsys/$baseproduct -systemctl daemon-reload >/dev/null 2>&1 +which systemctl >/dev/null 2>&1 && systemctl daemon-reload if [ "$inetd" != "1" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d $baseproduct stop >/dev/null 2>&1 /dev/null 2>&1 /dev/null 2>&1 /dev/null 2>&1 \$tempdir/webmin-setup.out 2>&1 chmod 600 \$tempdir/webmin-setup.out rm -f /var/lock/subsys/webmin -systemctl daemon-reload >/dev/null 2>&1 +which systemctl >/dev/null 2>&1 && systemctl daemon-reload if [ "\$inetd" != "1" -a "\$startafter" = "1" ]; then - /etc/init.d/webmin stop >/dev/null 2>&1 /dev/null 2>&1 /etc/webmin/uninstall.sh <