Introduced "restart" for emhttp

This commit is contained in:
bergware
2017-06-23 15:31:20 +02:00
parent e0d09ff9b1
commit a286a7c7cf
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
[[ -n $1 ]] && options="$1" || options=
[[ -n $2 ]] && options="$1 $2"
[[ -n $options ]] && options="$options \&" || options="\&"
sed -ri "s|^(.*/usr/local/sbin/emhttp).*|\1 $options|" /boot/config/go
sed -ri "s|^(.*/usr/local/sbin/emhttp).*|\1 $options|1" /boot/config/go
# We need to restart the GUI in a separate process to prevent it from hanging
at -M -f /usr/local/emhttp/webGui/scripts/restart_gui now 2>/dev/null
+1 -4
View File
@@ -2,7 +2,4 @@
# read go file settings and restart GUI
# called from accessmode script
/usr/local/sbin/emhttp stop >/dev/null
/usr/local/sbin/emhttp $(grep -Po '^.*/usr/local/sbin/emhttp \K[^&]*' /boot/config/go) >/dev/null
/etc/rc.d/rc.php-fpm start >/dev/null
/etc/rc.d/rc.nginx start >/dev/null
/usr/local/sbin/emhttp $(grep -Po '^.*/usr/local/sbin/emhttp \K[^&]*' /boot/config/go) restart >/dev/null