Fix error message paddings

This commit is contained in:
iliajie
2022-07-17 01:00:27 +03:00
parent 226620c7c4
commit 32798e18a4

View File

@@ -319,15 +319,13 @@ rm -f /var/lock/subsys/$baseproduct
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: \${productucf} server cannot be started. It is advised to start it manually\n \${productspace} by running \\"/etc/$baseproduct/restart-by-force-kill\\" command"
echo "E: \${productucf} server cannot be started. It is advised to start it manually\n by running \\"/etc/$baseproduct/restart-by-force-kill\\" command"
fi
else
if [ "$product" = "webmin" ]; then
@@ -340,7 +338,7 @@ if [ "\$inetd" != "1" ]; then
/etc/$baseproduct/restart >/dev/null 2>&1 </dev/null
fi
if [ "\$?" != "0" ]; then
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"
echo "W: \${productucf} server cannot be restarted. It is advised to restart it manually\n by running \\"/etc/$baseproduct/restart-by-force-kill\\" command when upgrade process is finished"
fi
fi
fi