mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Add system/debuglog.sh to sudoers
This commit is contained in:
@@ -8,7 +8,7 @@ if (isset($_POST['csrf_token'])) {
|
||||
handleInvalidCSRFToken();
|
||||
}
|
||||
$root = getenv("DOCUMENT_ROOT");
|
||||
exec( RASPI_CONFIG.'/system/debuglog.sh -i '.$root, $return);
|
||||
exec('sudo '.RASPI_CONFIG.'/system/debuglog.sh -i '.$root, $return);
|
||||
|
||||
$logOutput = implode(PHP_EOL, $return);
|
||||
$tempDir = sys_get_temp_dir();
|
||||
|
Reference in New Issue
Block a user