This commit is contained in:
Jamie Cameron
2022-03-30 19:35:37 -07:00
parent 2b4367634c
commit b9cbbc8026
2 changed files with 8 additions and 8 deletions

View File

@ -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
invoke-rc.d $baseproduct start >/dev/null 2>&1 </dev/null
invoke-rc.d $baseproduct stop
invoke-rc.d $baseproduct start
else
/etc/$baseproduct/stop >/dev/null 2>&1 </dev/null
/etc/$baseproduct/start >/dev/null 2>&1 </dev/null
/etc/$baseproduct/stop
/etc/$baseproduct/start
fi
fi
if [ "$product" = "usermin" ]; then

View File

@ -256,10 +256,10 @@ export config_dir var_dir perl autoos port login crypt host ssl nochown autothir
./setup.sh >\$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
/etc/init.d/webmin start >/dev/null 2>&1 </dev/null
/etc/init.d/webmin stop
/etc/init.d/webmin start
fi
cat >/etc/webmin/uninstall.sh <<EOFF
#!/bin/sh