From ad7dd473e07a1b6fdc1de6025971ab3a34c4ea4f Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:37:54 +0200 Subject: [PATCH] Update gitea-mirror.sh --- ct/gitea-mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/gitea-mirror.sh b/ct/gitea-mirror.sh index 09a5926d..182668e1 100644 --- a/ct/gitea-mirror.sh +++ b/ct/gitea-mirror.sh @@ -30,7 +30,7 @@ function update_script() { exit fi - APP_VERSION=$(grep -o '"version": *"[^"]*"' package.json | cut -d'"' -f4) + APP_VERSION=$(grep -o '"version": *"[^"]*"' /opt/gitea-miror/package.json | cut -d'"' -f4) if [[ $APP_VERSION =~ ^2\. ]]; then if ! whiptail --backtitle "Gitea Mirror Update" --title "⚠️ VERSION 2.x DETECTED" --yesno \ "WARNING: Version $APP_VERSION detected!\n\nUpdating from version 2.x will CLEAR ALL CONFIGURATION.\n\nThis includes:\n• API tokens\n• User settings\n• Repository configurations\n• All custom settings\n\nDo you want to continue with the update process?" 15 70 --defaultno