From c0f5842a74acd5d88a04e3b1d37b368025895444 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 14 Sep 2020 20:07:18 -0400 Subject: Adjust permissions on each run. Also alter list command to pick up on all repos --- entrypoint.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'entrypoint.sh') diff --git a/entrypoint.sh b/entrypoint.sh index 1072ba6..16ec682 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,6 +22,7 @@ NGINX_WORKER_CONNECTIONS="${NGINX_WORKER_CONNECTIONS:-1024}" printf "\033[0m" +# This is only run once in the container's lifetime unless /setup is removed setup() { if [ -e /setup ] ; then return ; fi if [ "$(find /var/git -type f | wc -l)" -eq 0 ] ; then @@ -30,10 +31,7 @@ fi addgroup -g "${CGIT_GID}" git adduser -h /var/git --gecos "$FULL_NAME" -D -s "${CGIT_SHELL}" -u "${CGIT_UID}" -G git git - -chown -R git:git /var/git passwd -u git - addgroup nginx git if [ -n "$AUTHORIZED_KEYS" ] ; then @@ -44,9 +42,6 @@ fi touch /setup } -# exec runsvdir /var/service -# /var/service/nginx/run & - run_nginx() { cat > /etc/nginx/nginx.conf <