From b63b054deee1767e86b3c1e74b701be4e6fa824f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 21 Jan 2025 22:46:24 +0100 Subject: [PATCH] Optimized cert copying --- .../nginx-docker-cert-deploy/files/nginx-docker-cert-deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/nginx-docker-cert-deploy/files/nginx-docker-cert-deploy.sh b/roles/nginx-docker-cert-deploy/files/nginx-docker-cert-deploy.sh index 2231a56b..beab068d 100644 --- a/roles/nginx-docker-cert-deploy/files/nginx-docker-cert-deploy.sh +++ b/roles/nginx-docker-cert-deploy/files/nginx-docker-cert-deploy.sh @@ -11,7 +11,8 @@ domain="$1" docker_compose_instance_directory="$2" # Copy certificates -cp -Rv "/etc/letsencrypt/live/$domain/"* "$docker_compose_instance_directory/certs" || exit 1 +cp -RvL "/etc/letsencrypt/live/$domain/"* "$docker_compose_instance_directory/certs" || exit 1 +chmod a+r -v "$docker_compose_instance_directory/certs/"* # Flag to track if any Nginx reload was successful nginx_reload_successful=false