]> Nutra Git (v1) - nutratech/vps-root.git/commitdiff
gitea update to use git not gg
authorShane Jaroch <chown_tee@proton.me>
Sat, 24 Jan 2026 02:28:00 +0000 (21:28 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 24 Jan 2026 02:28:00 +0000 (21:28 -0500)
docs/gitea.md
etc/gitea/app.ini
etc/systemd/system/gitea.service [new file with mode: 0644]
etc/systemd/system/klaus.service
scripts/manage_repos.py

index 1755f05eb9250659565ab306f699310cf70cc645..a690601ba7d6eb61e0e016bae85c321c7434dd80 100644 (file)
@@ -23,14 +23,8 @@ HOST="my-gitea.server" SSH_USER="admin" ~/.backups/pg_backups/gitea-backup.sh
 
 **Prerequisites (Sudo Access):**
 
-Since the script runs non-interactively, your SSH user must be able to run `gitea` commands as the Gitea user without a password.
+The script attempts to use `sudo`. Because it uses `ssh -t`, you can enter your sudo password interactively.
 
-On the **Gitea Server**, add this to `/etc/sudoers` (using `sudo visudo`):
-
-```text
-# Allow shane to run commands as gg without a password
-shane ALL=(gg) NOPASSWD: /usr/local/bin/gitea
-```
 
 **What it does:**
 
@@ -74,7 +68,7 @@ If your backups are large (e.g., hundreds of MBs), it's likely due to **repo-arc
 
 ```bash
 # On the server
-sudo -u gg rm -rf /var/lib/gitea/data/repo-archive/*
+sudo -u git rm -rf /var/lib/gitea/data/repo-archive/*
 ```
 
 ## Update Procedure
index b74b274caaf748701fefacd9c1b0c4a867a45d85..47d7c7bf1b146c434d9da5ff6993b27b5d037dd7 100644 (file)
Binary files a/etc/gitea/app.ini and b/etc/gitea/app.ini differ
diff --git a/etc/systemd/system/gitea.service b/etc/systemd/system/gitea.service
new file mode 100644 (file)
index 0000000..0a03668
Binary files /dev/null and b/etc/systemd/system/gitea.service differ
index e608798c94322187c9e114d125f2495242546551..8bcb5997d444866f90c68acee394f08cf0c1de6b 100644 (file)
Binary files a/etc/systemd/system/klaus.service and b/etc/systemd/system/klaus.service differ
index 56471d64fe9b7adda1a8874b517e9b54f8b32fc9..a634b2509e0837b5229c1d59a77c75f0c57d977d 100755 (executable)
@@ -169,7 +169,7 @@ def cmd_init(args, remote):
     # Safe Directory
     # We need to run this globally or on the system level, but running it locally for the user often works
     # if the user accessing it is the one running this.
-    # However, 'git config --global' on remote affects the remote user (gg).
+    # However, 'git config --global' on remote affects the remote user (git).
     remote_run(
         remote, ["git", "config", "--global", "--add", "safe.directory", full_path]
     )