diff --git a/includes/system.php b/includes/system.php index 83283c3a..1fc9616b 100755 --- a/includes/system.php +++ b/includes/system.php @@ -86,6 +86,11 @@ function DisplaySystem() } } + if (isset($_POST['RestartLighttpd'])) { + $status->addMessage('Restarting lighttpd in 3 seconds...','info'); + exec('sudo /etc/raspap/lighttpd/configport.sh --restart'); + } + exec('cat '. RASPI_LIGHTTPD_CONFIG, $return); $conf = ParseConfig($return); $ServerPort = $conf['server.port'];