From ee0f24020ea6435e48e0442d1df16cfdbc54eff6 Mon Sep 17 00:00:00 2001 From: Matt Burrough Date: Thu, 27 Oct 2022 09:59:20 -0700 Subject: [PATCH] Update update_caddyfile.sh Updated call to caddy's hash-password to resolve error with using only a single dash before plaintext. https://caddyserver.com/docs/command-line#caddy-hash-password --- scripts/update_caddyfile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_caddyfile.sh b/scripts/update_caddyfile.sh index 1d5286a..daa959a 100755 --- a/scripts/update_caddyfile.sh +++ b/scripts/update_caddyfile.sh @@ -7,7 +7,7 @@ if [ -f /etc/caddy/Caddyfile ];then cp /etc/caddy/Caddyfile{,.original} fi if ! [ -z ${CADDY_PWD} ];then -HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD}) +HASHWORD=$(caddy hash-password --plaintext ${CADDY_PWD}) cat << EOF > /etc/caddy/Caddyfile http:// ${BIRDNETPI_URL} { root * ${EXTRACTED}