mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Update local installer pre-loader path
This commit is contained in:
parent
1e4fe3b002
commit
fec2c283c1
@ -9,10 +9,13 @@ if (isset($_POST['csrf_token'])) {
|
||||
// set installer path + options
|
||||
$path = getenv("DOCUMENT_ROOT");
|
||||
$opts = " --update --path $path --yes";
|
||||
$installer = "curl -sL https://install.raspap.com | bash -s -- ";
|
||||
$installer = "sudo /etc/raspap/system/app-update.sh";
|
||||
$execUpdate = $installer.$opts;
|
||||
echo json_encode($execUpdate);
|
||||
|
||||
$response = shell_exec($execUpdate);
|
||||
echo json_encode($response);
|
||||
|
||||
} else {
|
||||
handleInvalidCSRFToken();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user