diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-07-04 16:31:13 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-07-04 16:31:57 +0530 |
| commit | ef34b26068c4e25f929a584edda63b8878c063b3 (patch) | |
| tree | aaa2445b12807109f265e8869a54f76cb752da9e /cgit/docker-entrypoint.sh | |
| parent | 1569f35ae6cd90b056cb237ba020c69d37ebafb5 (diff) | |
| download | bacchus-remote-ef34b26068c4e25f929a584edda63b8878c063b3.tar.gz bacchus-remote-ef34b26068c4e25f929a584edda63b8878c063b3.zip | |
Create local dockerfiles override to manage send/cgit users/groups
Diffstat (limited to 'cgit/docker-entrypoint.sh')
| -rwxr-xr-x | cgit/docker-entrypoint.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cgit/docker-entrypoint.sh b/cgit/docker-entrypoint.sh new file mode 100755 index 0000000..0c13086 --- /dev/null +++ b/cgit/docker-entrypoint.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -eux + +CGIT_USER=git +CGIT_GROUP=git + +id + +chown $CGIT_USER:$CGIT_GROUP /var/cache/cgit +chmod u+g /var/cache/cgit + +spawn-fcgi \ + -u $CGIT_USER -g $CGIT_GROUP \ + -s /var/run/fcgiwrap.sock \ + -n -- /usr/bin/fcgiwrap \ + & exec "$@" |
