summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--f3s/git-server/helm-chart/templates/deployment.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml
index c077aa5..12a235a 100644
--- a/f3s/git-server/helm-chart/templates/deployment.yaml
+++ b/f3s/git-server/helm-chart/templates/deployment.yaml
@@ -69,6 +69,8 @@ spec:
command: ["/bin/sh", "-c"]
args:
- |
+ # Remove 'user nginx;' directive to avoid setgid errors when running as root
+ sed -i 's/^user nginx;//' /etc/nginx/nginx.conf
spawn-fcgi -s /var/run/fcgiwrap.sock -n -- /usr/bin/fcgiwrap &
exec nginx -g 'daemon off;'
ports: