File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
docker/rootfs/etc/s6-overlay/s6-rc.d/prepare Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,10 @@ chown -R "$PUID:$PGID" /etc/nginx/conf.d
26
26
# Certbot directories - optimized approach
27
27
CERT_INIT_FLAG=" /opt/certbot/.ownership_initialized"
28
28
29
- if [ ! -f " $CERT_INIT_FLAG " ]; then
29
+ if [ ! -f " $CERT_INIT_FLAG " ] || [ " $SKIP_CERTBOT_OWNERSHIP " != " true " ] ; then
30
30
# Prevents errors when installing python certbot plugins when non-root
31
- if [ " $SKIP_CERTBOT_OWNERSHIP " != " true" ]; then
32
- log_info ' Changing ownership of /opt/certbot directories ...'
33
- chown " $PUID :$PGID " /opt/certbot /opt/certbot/bin
34
- fi
31
+ log_info ' Changing ownership of /opt/certbot directories ...'
32
+ chown " $PUID :$PGID " /opt/certbot /opt/certbot/bin
35
33
36
34
# Handle all site-packages directories efficiently
37
35
find /opt/certbot/lib -type d -name " site-packages" | while read -r SITE_PACKAGES_DIR; do
You can’t perform that action at this time.
0 commit comments