diff --git a/package/secubox/secubox-app-gitea/Makefile b/package/secubox/secubox-app-gitea/Makefile index 1c612565..21abe1cb 100644 --- a/package/secubox/secubox-app-gitea/Makefile +++ b/package/secubox/secubox-app-gitea/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=secubox-app-gitea PKG_VERSION:=1.0.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_ARCH:=all PKG_MAINTAINER:=CyberMind Studio diff --git a/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl b/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl index 9a8532ab..66fa50e9 100644 --- a/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl +++ b/package/secubox/secubox-app-gitea/files/usr/sbin/giteactl @@ -244,10 +244,14 @@ if ! command -v su-exec >/dev/null 2>&1; then apk add --no-cache git git-lfs openssh su-exec sqlite fi -# Always ensure git user exists (doesn't persist between container restarts) +# Always ensure git user/group exists (doesn't persist between container restarts) +if ! getent group git >/dev/null 2>&1; then + echo "Creating git group..." + addgroup -g 1000 git +fi if ! id -u git >/dev/null 2>&1; then echo "Creating git user..." - adduser -D -s /bin/sh -h /data -u 1000 git + adduser -D -s /bin/sh -h /data -u 1000 -G git git fi # Ensure directories exist with correct ownership