From 1010d9d358d2f0e427c56c153d0c52eefc15d2c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 9 Jul 2021 22:49:20 -0500 Subject: check directory /etc/nginx/conf.d as step --- gitolite-cgit/entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gitolite-cgit/entrypoint.sh') diff --git a/gitolite-cgit/entrypoint.sh b/gitolite-cgit/entrypoint.sh index d740147..79b9cc1 100755 --- a/gitolite-cgit/entrypoint.sh +++ b/gitolite-cgit/entrypoint.sh @@ -15,6 +15,10 @@ if [ ! -f "/var/lib/git/.ssh/authorized_keys" ]; then rm "/tmp/$SSH_KEY_NAME.pub" fi +if [ ! -d /etc/nginx/conf.d ]; then + install -d -m755 /etc/nginx/conf.d || true +fi + # Init container if [ ! -f /etc/nginx/conf.d/cgit.conf ]; then # enable random git password @@ -189,10 +193,6 @@ EOF # /usr/lib/cgit/filters/syntax-highlighting.sh # Nginx configuration - rm /etc/nginx/conf.d/default.conf || true - - install -d -m755 /etc/nginx/conf.d || true - cat > /etc/nginx/conf.d/cgit.conf <<- EOF server { listen 80 default_server; -- cgit v1.2.3