Fix makedebian.pl for Usermin

This commit is contained in:
iliajie
2022-07-05 03:07:05 +03:00
parent 9c0d35238b
commit 2b87fc925a

View File

@@ -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