Browse Source

Fix ownership if statement

Jamie Curnow 5 months ago
parent
commit
304b38e82b
1 changed files with 1 additions and 1 deletions
  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

@@ -26,7 +26,7 @@ chown -R "$PUID:$PGID" /etc/nginx/conf.d
 # Certbot directories - optimized approach
 # Certbot directories - optimized approach
 CERT_INIT_FLAG="/opt/certbot/.ownership_initialized"
 CERT_INIT_FLAG="/opt/certbot/.ownership_initialized"
 
 
-if [ ! -f "$CERT_INIT_FLAG" ] || [ "$SKIP_CERTBOT_OWNERSHIP" != "true" ]; then
+if [ ! -f "$CERT_INIT_FLAG" ] && [ "$SKIP_CERTBOT_OWNERSHIP" != "true" ]; then
 	# Prevents errors when installing python certbot plugins when non-root
 	# Prevents errors when installing python certbot plugins when non-root
 	log_info 'Changing ownership of /opt/certbot directories ...'
 	log_info 'Changing ownership of /opt/certbot directories ...'
 	chown "$PUID:$PGID" /opt/certbot /opt/certbot/bin
 	chown "$PUID:$PGID" /opt/certbot /opt/certbot/bin