From fec2c283c115821e28a07d823bf2767744d39b7a Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 23 Nov 2023 08:45:40 +0000 Subject: [PATCH] Update local installer pre-loader path --- ajax/system/sys_perform_update.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ajax/system/sys_perform_update.php b/ajax/system/sys_perform_update.php index eb380ade..a33984bc 100644 --- a/ajax/system/sys_perform_update.php +++ b/ajax/system/sys_perform_update.php @@ -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(); } +