Update ggt/lda-upgrade.diff

This commit is contained in:
lda committed 2026-07-19 03:40:08 +07:00
1 parent 58c5ab1dda
commit e70a012b03
1 file changed
+25
View File
@@ -0,0 +1,25 @@
@@ -25,7 +25,7 @@
: "${giteaconf:="/etc/gitea/app.ini"}"
: "${giteauser:="git"}"
: "${sudocmd:="sudo"}"
-: "${arch:="linux-amd64"}"
+: "${arch:="linux-arm64"}"
: "${service_start:="$sudocmd systemctl start gitea"}"
: "${service_stop:="$sudocmd systemctl stop gitea"}"
: "${service_status:="$sudocmd systemctl status gitea"}"
@@ -132,9 +132,15 @@
cp -f "$giteabin" "$giteabin.bak" && mv -f "$binname" "$giteabin"
# Restore SELinux context if applicable (e.g. RHEL/Fedora)
command -v restorecon &>/dev/null && restorecon -v "$giteabin" || true
+
+# lda theme update
+/home/opc/ai/codex/ggt/iggt.sh "$giteaversion" "$(giteacmd help | awk '/CustomPath:/ {print $2}')"
+# fi
+
$service_start
$service_status
echo "Upgrade to $giteaversion successful!"
popd
+