Fix to suppress output from init scripts

We already have `Attempting to start Webmin web server ..` being printed. As the init scripts have prompt we also need to handle it
This commit is contained in:
Ilia Ross
2023-10-13 14:11:06 +03:00
parent 46375d60c2
commit b9f1d5df1d
2 changed files with 7 additions and 7 deletions

View File

@@ -1014,13 +1014,13 @@ if [ "$nostart" = "" ]; then
# If upgrading, restart
if [ "$upgrading" = "1" ]; then
if [ "$killmodenonesh" != "1" ]; then
$config_dir/.post-install >/dev/null 2>&1
$config_dir/.post-install >/dev/null 2>&1 </dev/null
else
$config_dir/.reload-init >/dev/null 2>&1
$config_dir/.reload-init >/dev/null 2>&1 </dev/null
fi
# If installing first time, start it
else
$config_dir/start >/dev/null 2>&1
$config_dir/start >/dev/null 2>&1 </dev/null
fi
if [ $? != "0" ]; then