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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user