Skip to content

Commit a5b21d0

Browse files
authored
replaxed chown with find -not -user ... chown
chown -R tries to chown all files. find -not -user -execdir only chowns files not owned by PUID
1 parent d40f9e0 commit a5b21d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ chown -R "$PUID:$PGID" /etc/nginx/conf.d
2525

2626
# Prevents errors when installing python certbot plugins when non-root
2727
chown "$PUID:$PGID" /opt/certbot /opt/certbot/bin
28-
chown -R "$PUID:$PGID" /opt/certbot/lib/python*/site-packages
28+
find /opt/certbot/lib/python*/site-packages -not -user "$PUID" -execdir chown "$PUID:$PGID" {} \+

0 commit comments

Comments
 (0)