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);
|
||||
|
Reference in New Issue
Block a user