Add extra stop call before re-starting, just in case the old version is somehow still running https://www.virtualmin.com/node/54735

This commit is contained in:
Jamie Cameron
2017-12-27 14:35:04 -08:00
parent 1559aebf7f
commit 4896a1083f
2 changed files with 2 additions and 0 deletions

View File

@@ -310,6 +310,7 @@ if [ "$inetd" != "1" ]; then
invoke-rc.d $baseproduct stop >/dev/null 2>&1 </dev/null
invoke-rc.d $baseproduct start >/dev/null 2>&1 </dev/null
else
/etc/$baseproduct/stop >/dev/null 2>&1 </dev/null
/etc/$baseproduct/start >/dev/null 2>&1 </dev/null
fi
fi

View File

@@ -225,6 +225,7 @@ export config_dir var_dir perl autoos port login crypt host ssl nochown autothir
chmod 600 \$tempdir/webmin-setup.out
rm -f /var/lock/subsys/webmin
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
fi
cat >/etc/webmin/uninstall.sh <<EOFF