From 1ab5780416a088c0fdd5a916b5058fa48bfb32bd Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sat, 2 Nov 2024 20:41:41 +0800 Subject: [PATCH] Update scripts --- roles/files/debian/setup/scripts/acme_scripts/cloudflare.sh | 4 +++- roles/files/debian/setup/scripts/acme_scripts/duckdns.sh | 2 ++ roles/tasks/debian/setup.yml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/files/debian/setup/scripts/acme_scripts/cloudflare.sh b/roles/files/debian/setup/scripts/acme_scripts/cloudflare.sh index 0096401..f2df1be 100644 --- a/roles/files/debian/setup/scripts/acme_scripts/cloudflare.sh +++ b/roles/files/debian/setup/scripts/acme_scripts/cloudflare.sh @@ -1,8 +1,10 @@ #!/bin/bash -# Read CF_Token and ACME_Email from .env +# Read CF_Token from .env source ".env" +export CF_Token "$CF_Token" + /root/.acme.sh/acme.sh --upgrade --auto-upgrade # Array of domains diff --git a/roles/files/debian/setup/scripts/acme_scripts/duckdns.sh b/roles/files/debian/setup/scripts/acme_scripts/duckdns.sh index 2781409..1830708 100644 --- a/roles/files/debian/setup/scripts/acme_scripts/duckdns.sh +++ b/roles/files/debian/setup/scripts/acme_scripts/duckdns.sh @@ -3,6 +3,8 @@ # Read DuckDNS_Token and ACME_Email from .env source ".env" +export DuckDNS_Token "$DuckDNS_Token" + /root/.acme.sh/acme.sh --upgrade --auto-upgrade # Array of main domains diff --git a/roles/tasks/debian/setup.yml b/roles/tasks/debian/setup.yml index 6afbc2c..ca22f98 100644 --- a/roles/tasks/debian/setup.yml +++ b/roles/tasks/debian/setup.yml @@ -44,6 +44,7 @@ - cifs-utils - borgbackup - curl + - wget - syncthing - socat - fish