mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user