From 0e5484d0e43ca6fdd5f0f7fa1f4bef86b4097728 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Sun, 28 Apr 2024 22:31:23 +0100 Subject: [PATCH] fix: use array expansion for nginx certbot entrypoint --- nginx/container-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/container-entrypoint.sh b/nginx/container-entrypoint.sh index 088573f..127e22f 100644 --- a/nginx/container-entrypoint.sh +++ b/nginx/container-entrypoint.sh @@ -46,8 +46,8 @@ certbot_args=( ) # Run certbot with the constructed arguments -echo "Running command: certbot ${certbot_args}" -certbot "${certbot_args}" +echo "Running command: certbot ${certbot_args[*]}" +certbot "${certbot_args[@]}" echo "Certificate generated under: /etc/letsencrypt/live/${DOMAIN}/" # Successful exit (stop container)