Преглед на файлове

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
woodmichl преди 1 година
родител
ревизия
a5b21d0306
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh

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