Skip to content

Commit 3735f3c

Browse files
committed
Formating for ownership script
1 parent 953faea commit 3735f3c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ chown -R "$PUID:$PGID" /etc/nginx/conf.d
2727
CERT_INIT_FLAG="/opt/certbot/.ownership_initialized"
2828

2929
if [ ! -f "$CERT_INIT_FLAG" ]; then
30-
# Prevents errors when installing python certbot plugins when non-root
31-
chown "$PUID:$PGID" /opt/certbot /opt/certbot/bin
32-
33-
# Handle all site-packages directories efficiently
34-
find /opt/certbot/lib -type d -name "site-packages" | while read -r SITE_PACKAGES_DIR; do
35-
chown -R "$PUID:$PGID" "$SITE_PACKAGES_DIR"
36-
done
37-
38-
# Create a flag file to skip this step on subsequent runs
39-
touch "$CERT_INIT_FLAG"
40-
chown "$PUID:$PGID" "$CERT_INIT_FLAG"
41-
fi
30+
# Prevents errors when installing python certbot plugins when non-root
31+
chown "$PUID:$PGID" /opt/certbot /opt/certbot/bin
32+
33+
# Handle all site-packages directories efficiently
34+
find /opt/certbot/lib -type d -name "site-packages" | while read -r SITE_PACKAGES_DIR; do
35+
chown -R "$PUID:$PGID" "$SITE_PACKAGES_DIR"
36+
done
37+
38+
# Create a flag file to skip this step on subsequent runs
39+
touch "$CERT_INIT_FLAG"
40+
chown "$PUID:$PGID" "$CERT_INIT_FLAG"
41+
fi

0 commit comments

Comments
 (0)