summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-20 19:52:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-20 19:52:18 +0000
commit042576375a2e927dce8c26d626b7effbeebd2551 (patch)
tree2e2f7edf10a874d4ded1424ea378432625b2b706 /usr/local/www
parentc20c0f5a9a1e241d636d4456f38665dd2c53a4c5 (diff)
downloadpfsense-042576375a2e927dce8c26d626b7effbeebd2551.zip
pfsense-042576375a2e927dce8c26d626b7effbeebd2551.tar.gz
Correctly restart web server after certificate change
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