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
This commit is contained in:
Matt Burrough
2022-10-27 09:59:20 -07:00
committed by GitHub
parent de87bca48c
commit ee0f24020e
+1 -1
View File
@@ -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}