mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix makedebian.pl for Usermin
This commit is contained in:
@@ -314,16 +314,26 @@ if [ "$product" = "webmin" ]; then
|
||||
fi
|
||||
rm -f /var/lock/subsys/$baseproduct
|
||||
|
||||
if [ "$inetd" != "1" ]; then
|
||||
if [ "\$inetd" != "1" ]; then
|
||||
productucf=Webmin
|
||||
productspace=""
|
||||
if [ "$product" = "usermin" ]; then
|
||||
productucf=Usermin
|
||||
productspace=" "
|
||||
fi
|
||||
if [ "\$justinstalled" = "1" ]; then
|
||||
/etc/$baseproduct/start >/dev/null 2>&1 </dev/null
|
||||
if [ "\$?" != "0" ]; then
|
||||
echo "E: Webmin server cannot be started. It is advised to start it manually\n by running \\"/etc/webmin/restart-by-force-kill\\" command"
|
||||
echo "E: \${productucf} server cannot be started. It is advised to start it manually\n \${productspace} by running \\"/etc/$baseproduct/restart-by-force-kill\\" command"
|
||||
fi
|
||||
else
|
||||
/etc/$baseproduct/.post-install >/dev/null 2>&1 </dev/null
|
||||
if [ "$product" = "webmin" ]; then
|
||||
/etc/$baseproduct/.post-install >/dev/null 2>&1 </dev/null
|
||||
else
|
||||
/etc/$baseproduct/restart >/dev/null 2>&1 </dev/null
|
||||
fi
|
||||
if [ "\$?" != "0" ]; then
|
||||
echo "W: Webmin server cannot be restarted. It is advised to restart it manually\n by running \\"/etc/webmin/restart-by-force-kill\\" command when upgrade process is finished"
|
||||
echo "W: \${productucf} server cannot be restarted. It is advised to restart it manually\n \${productspace} by running \\"/etc/$baseproduct/restart-by-force-kill\\" command when upgrade process is finished"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user