git-server-docker-stagit

git-server-with-stagit
git clone git://git.andersuno.nu/git-server-docker-stagit.git
Log | Files | Refs | README

commit c3b1e0940633bce59b7cace1a45b21413ef83ab6
parent a88ca9fea22dfe5fe49dd7b92cc4e30ff6c7e5a2
Author: Anders <anders.hedman01@gmail.com>
Date:   Sun,  1 May 2022 22:06:26 +0200

Added git-daemon and modified owner check in start-script

Diffstat:
Mstart.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/start.sh b/start.sh @@ -12,12 +12,14 @@ fi # Checking permissions and fixing SGID bit in repos folder # More info: https://github.com/jkarlosb/git-server-docker/issues/1 -if [ "$(ls -A /git-server/repos/)" ]; then +if [ -d /git-server/repos/ ]; then cd /git-server/repos chown -R git:git . chmod -R ug+rwX . find . -type d -exec chmod g+s '{}' + fi +/usr/bin/git daemon --reuseaddr --base-path=/git-server/repos/ /git-server/repos/ & + # -D flag avoids executing sshd as a daemon /usr/sbin/sshd -D