1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Handler for restart lighttpd

This commit is contained in:
billz 2019-11-11 13:35:48 +00:00
parent 21ae039589
commit 4e4a937ccd

View File

@ -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); exec('cat '. RASPI_LIGHTTPD_CONFIG, $return);
$conf = ParseConfig($return); $conf = ParseConfig($return);
$ServerPort = $conf['server.port']; $ServerPort = $conf['server.port'];