Updates to user/group determination after recent changes to v2 branch

This commit is contained in:
Jamie Curnow
2023-04-11 09:12:48 +10:00
parent fe46da3355
commit c0c89e5d15
18 changed files with 267 additions and 83 deletions

View File

@ -0,0 +1,22 @@
#!/command/with-contenv bash
# shellcheck shell=bash
set -e
log_info 'Setting ownership ...'
# root
chown root /tmp/nginx
# npmuser
chown -R "$PUID:$PGID" /data \
/run/nginx \
/tmp/nginx \
/var/cache/nginx \
/var/lib/nginx \
/var/log/nginx
# Don't chown entire /etc/nginx folder as this causes crashes on some systems
chown -R "$PUID:$PGID" /etc/nginx/nginx \
/etc/nginx/nginx.conf \
/etc/nginx/conf.d