From 944a0f8418d69bf1f72af57814e212bfa09fd3c5 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sat, 24 Jan 2026 11:09:15 +0100 Subject: [PATCH] fix(gitea): Fix /data directory permissions for git user - chown -R git:git /data at startup to fix permission issues - chmod 755 on key directories - Add /data/log directory Co-Authored-By: Claude Opus 4.5 --- package/secubox/secubox-app-gitea/files/usr/sbin/giteactl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl b/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl index 77918dd1..dfa2a084 100644 --- a/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl +++ b/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl @@ -248,11 +248,12 @@ fi # Ensure git user exists id -u git >/dev/null 2>&1 || adduser -D -s /bin/bash -h /data git -# Ensure directories exist and have correct ownership +# Ensure directories exist with correct ownership mkdir -p /data/git/repositories mkdir -p /data/custom/conf -chown -R git:git /data/git 2>/dev/null || true -chown -R git:git /data/custom 2>/dev/null || true +mkdir -p /data/log +chown -R git:git /data +chmod 755 /data /data/git /data/custom /data/custom/conf # Generate SSH host keys if needed if [ ! -f /data/ssh/ssh_host_rsa_key ]; then