Add system/debuglog.sh to sudoers

This commit is contained in:
billz
2023-11-01 07:46:36 +00:00
parent 9663832f0d
commit 22cd0ae017
2 changed files with 2 additions and 1 deletions

View File

@@ -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();