summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system_advanced.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 62a36d0..dc77910 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -206,12 +206,6 @@ if ($_POST) {
$config['theme'] = $_POST['theme'];
write_config();
-
- if (($config['system']['webgui']['certificate'] != $oldcert)
- || ($config['system']['webgui']['private-key'] != $oldkey)) {
- system_webgui_start();
- }
-
$retval = 0;
config_lock();
@@ -660,6 +654,11 @@ include("head.inc");
<?php
+if (($config['system']['webgui']['certificate'] != $oldcert)
+ || ($config['system']['webgui']['private-key'] != $oldkey)) {
+ touch("/tmp/restart_webgui");
+}
+
function auto_login($status) {
$gettytab = file_get_contents("/etc/gettytab");
$getty_split = split("\n", $gettytab);
OpenPOWER on IntegriCloud