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
2626# Certbot directories - optimized approach
2727CERT_INIT_FLAG=" /opt/certbot/.ownership_initialized"
2828
29- if [ ! -f " $CERT_INIT_FLAG " ]; then
29+ if [ ! -f " $CERT_INIT_FLAG " ] || [ " $SKIP_CERTBOT_OWNERSHIP " != " true " ] ; then
3030 # 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
3533
3634 # Handle all site-packages directories efficiently
3735 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