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