mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Use existing raspbian.sh install loader for update
This commit is contained in:
@@ -8,8 +8,8 @@ if (isset($_POST['csrf_token'])) {
|
||||
}
|
||||
// set installer path + options
|
||||
$path = getenv("DOCUMENT_ROOT");
|
||||
$opts = " --update --path $path --yes";
|
||||
$installer = "sudo /etc/raspap/system/app-update.sh";
|
||||
$opts = " --update --yes --path $path";
|
||||
$installer = "sudo /etc/raspap/system/raspbian.sh";
|
||||
$execUpdate = $installer.$opts;
|
||||
|
||||
$response = shell_exec($execUpdate);
|
||||
|
@@ -9,7 +9,7 @@ $searchStrings = [
|
||||
'Installation completed' => 6,
|
||||
'error' => 7
|
||||
];
|
||||
sleep(1);
|
||||
usleep(500);
|
||||
|
||||
if (file_exists($logFile)) {
|
||||
$handle = fopen($logFile, 'r');
|
||||
@@ -40,4 +40,3 @@ if (file_exists($logFile)) {
|
||||
echo json_encode("File does not exist: $logFile");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user