Update gitea-mirror.sh

This commit is contained in:
Tobias 2025-06-27 11:38:50 +02:00 committed by GitHub
parent ad7dd473e0
commit c2c75c59a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ function update_script() {
exit
fi
APP_VERSION=$(grep -o '"version": *"[^"]*"' /opt/gitea-miror/package.json | cut -d'"' -f4)
APP_VERSION=$(grep -o '"version": *"[^"]*"' /opt/gitea-mirror/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