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" {} \+