Skip to content

Commit a1245bc

Browse files
committed
Split up ownership to indentify point of failure
1 parent db4ab1d commit a1245bc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ log_info 'Setting ownership ...'
1111
chown root /tmp/nginx
1212

1313
# npmuser
14-
chown -R "$PUID:$PGID" /data \
15-
/etc/letsencrypt \
16-
/run/nginx \
17-
/tmp/nginx \
18-
/var/cache/nginx \
19-
/var/lib/logrotate \
20-
/var/lib/nginx \
21-
/var/log/nginx
14+
chown -R "$PUID:$PGID" /data
15+
chown -R "$PUID:$PGID" /etc/letsencrypt
16+
chown -R "$PUID:$PGID" /run/nginx
17+
chown -R "$PUID:$PGID" /tmp/nginx
18+
chown -R "$PUID:$PGID" /var/cache/nginx
19+
chown -R "$PUID:$PGID" /var/lib/logrotate
20+
chown -R "$PUID:$PGID" /var/lib/nginx
21+
chown -R "$PUID:$PGID" /var/log/nginx
2222

2323
# Don't chown entire /etc/nginx folder as this causes crashes on some systems
24-
chown -R "$PUID:$PGID" /etc/nginx/nginx \
25-
/etc/nginx/nginx.conf \
26-
/etc/nginx/conf.d
24+
chown -R "$PUID:$PGID" /etc/nginx/nginx
25+
chown -R "$PUID:$PGID" /etc/nginx/nginx.conf
26+
chown -R "$PUID:$PGID" /etc/nginx/conf.d

0 commit comments

Comments
 (0)