aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-07-09 22:49:20 -0500
committerJesús <heckyel@hyperbola.info>2021-07-09 22:49:20 -0500
commit1010d9d358d2f0e427c56c153d0c52eefc15d2c7 (patch)
treee92a67461e36f0187825cabc5266d1e914ab3e56
parentf9dbd383790369b076a7a01b570fde2b0e10bec2 (diff)
downloadgitolite-cgit-docker-1010d9d358d2f0e427c56c153d0c52eefc15d2c7.tar.lz
gitolite-cgit-docker-1010d9d358d2f0e427c56c153d0c52eefc15d2c7.tar.xz
gitolite-cgit-docker-1010d9d358d2f0e427c56c153d0c52eefc15d2c7.zip
check directory /etc/nginx/conf.d as step
-rwxr-xr-xgitolite-cgit/entrypoint.sh8
1 files changed, 4 insertions, 4 deletions
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;