Fix to check for status only if it was running in the first place

https://sourceforge.net/p/webadmin/bugs/5646/

[build]
This commit is contained in:
Ilia Ross
2024-04-21 15:48:09 +03:00
parent cd46f97288
commit b57d57b729
2 changed files with 6 additions and 6 deletions

View File

@@ -242,14 +242,14 @@ if [ "\$inetd" != "1" ]; then
/etc/webmin/.post-install >/dev/null 2>&1 </dev/null
else
/etc/webmin/.reload-init >/dev/null 2>&1 </dev/null
if [ "\$?" != "0" ]; then
echo "warning: Webmin server cannot be restarted. It is advised to restart it manually by\n running \\"/etc/webmin/restart-by-force-kill\\" when upgrade process is finished"
fi
if [ -f /etc/webmin/.reload-init-systemd ]; then
/etc/webmin/.reload-init-systemd >/dev/null 2>&1 </dev/null
rm -f /etc/webmin/.reload-init-systemd
fi
fi
if [ "\$?" != "0" ]; then
echo "warning: Webmin server cannot be restarted. It is advised to restart it manually by\n running \\"/etc/webmin/restart-by-force-kill\\" when upgrade process is finished"
fi
fi
fi