From a6b35e8d85313e3156e20bd0d2edb0d29a3a04a4 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Sun, 19 Jan 2025 15:38:04 +0800 Subject: [PATCH] fix update issue --- module/webui/scripts/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/webui/scripts/update.js b/module/webui/scripts/update.js index c18a6bd..18e7afc 100644 --- a/module/webui/scripts/update.js +++ b/module/webui/scripts/update.js @@ -89,7 +89,7 @@ function setupUpdateMenu() { try { showPrompt("prompt.installing"); setTimeout(async () => { - await execCommand(`sh ${basePath}common/get_extra.sh --install-update`); + await execCommand(`su -c 'sh ${basePath}common/get_extra.sh --install-update'`); showPrompt("prompt.installed"); installButton.style.display = "none"; rebootButton.style.display = "flex";