From a5b21d03065c2b776f20210518b203929903fb58 Mon Sep 17 00:00:00 2001 From: woodmichl <47953943+woodmichl@users.noreply.github.com> Date: Sun, 10 Mar 2024 01:55:18 +0100 Subject: [PATCH] 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 --- docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh b/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh index 27a1fe24..378cc9ca 100755 --- a/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh +++ b/docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh @@ -25,4 +25,4 @@ chown -R "$PUID:$PGID" /etc/nginx/conf.d # Prevents errors when installing python certbot plugins when non-root chown "$PUID:$PGID" /opt/certbot /opt/certbot/bin -chown -R "$PUID:$PGID" /opt/certbot/lib/python*/site-packages +find /opt/certbot/lib/python*/site-packages -not -user "$PUID" -execdir chown "$PUID:$PGID" {} \+