From 6f8cb905b0db4f446e15c4b690cf9b6deef845c7 Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 7 Nov 2024 22:57:39 +0000 Subject: [PATCH] Will I ever test my code before committing? No. --- acme_provision.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acme_provision.sh b/acme_provision.sh index 4dca2f3..7ed4c09 100644 --- a/acme_provision.sh +++ b/acme_provision.sh @@ -2,7 +2,7 @@ acmesh="/root/.acme.sh/acme.sh" -if [ ! -f "$acmesh"]; then +if [ ! -f "$acmesh" ]; then echo "acme.sh binary \"($acmesh)\" not found. Please update the path or download it from here: https://github.com/acmesh-official/acme.sh" exit 1 fi @@ -50,17 +50,17 @@ nginx -t echo -n "Please make sure the test passed successfully and fix any issues if it didn't [Enter]" read -acmesh --set-default-ca --server letsencrypt +"$acmesh" --set-default-ca --server letsencrypt echo -n '[Enter] to continue' read -acmesh --issue -d "$domain" -w "/var/www/$domain/" +"$acmesh" --issue -d "$domain" -w "/var/www/$domain/" echo -n '[Enter] to continue' read mkdir -p -v "/etc/nginx/certs/$domain" -acmesh --install-cert -d "$domain" --cert-file "/etc/nginx/certs/$domain/cert.pem" --key-file "/etc/nginx/certs/$domain/key.key" --fullchain-file "/etc/nginx/certs/$domain/fullchain.cer" --reloadcmd "service nginx force-reload" +"$acmesh" --install-cert -d "$domain" --cert-file "/etc/nginx/certs/$domain/cert.pem" --key-file "/etc/nginx/certs/$domain/key.key" --fullchain-file "/etc/nginx/certs/$domain/fullchain.cer" --reloadcmd "service nginx force-reload" echo -n '[Enter] to continue' read