Skip to content

Commit 304b38e

Browse files
committed
Fix ownership if statement
1 parent 1b0929a commit 304b38e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ chown -R "$PUID:$PGID" /etc/nginx/conf.d
2626
# Certbot directories - optimized approach
2727
CERT_INIT_FLAG="/opt/certbot/.ownership_initialized"
2828

29-
if [ ! -f "$CERT_INIT_FLAG" ] || [ "$SKIP_CERTBOT_OWNERSHIP" != "true" ]; then
29+
if [ ! -f "$CERT_INIT_FLAG" ] && [ "$SKIP_CERTBOT_OWNERSHIP" != "true" ]; then
3030
# Prevents errors when installing python certbot plugins when non-root
3131
log_info 'Changing ownership of /opt/certbot directories ...'
3232
chown "$PUID:$PGID" /opt/certbot /opt/certbot/bin

0 commit comments

Comments
 (0)