aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-07-09 22:44:02 -0500
committerJesús <heckyel@hyperbola.info>2021-07-09 22:44:02 -0500
commitf9dbd383790369b076a7a01b570fde2b0e10bec2 (patch)
treec027d20fb8c874aaf812074651351447342711af
parentc3c8f480fe919cb271706694aefdb04813178c0e (diff)
downloadgitolite-cgit-docker-f9dbd383790369b076a7a01b570fde2b0e10bec2.tar.lz
gitolite-cgit-docker-f9dbd383790369b076a7a01b570fde2b0e10bec2.tar.xz
gitolite-cgit-docker-f9dbd383790369b076a7a01b570fde2b0e10bec2.zip
fix missing directory
-rwxr-xr-xgitolite-cgit/entrypoint.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitolite-cgit/entrypoint.sh b/gitolite-cgit/entrypoint.sh
index 2a992e4..d740147 100755
--- a/gitolite-cgit/entrypoint.sh
+++ b/gitolite-cgit/entrypoint.sh
@@ -189,7 +189,9 @@ EOF
# /usr/lib/cgit/filters/syntax-highlighting.sh
# Nginx configuration
- rm /etc/nginx/conf.d/default.conf
+ 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 {