Use existing raspbian.sh install loader for update

This commit is contained in:
billz
2023-11-24 07:49:52 +00:00
parent 99fd2f8ce7
commit aa3a88e9b1
5 changed files with 7 additions and 98 deletions

View File

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

View File

@@ -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");
}