Fix Authelia bootstrap hash interpolation

This commit is contained in:
2026-08-20 19:51:02 +00:00
parent 745cd4e9fa
commit 26d340a7f1
+5 -5
View File
@@ -93,14 +93,14 @@ services:
fi
if [ ! -f /config/users_database.yml ]; then
: "${AUTHELIA_BOOTSTRAP_PASSWORD_HASH:?AUTHELIA_BOOTSTRAP_PASSWORD_HASH is required}"
: "$${AUTHELIA_BOOTSTRAP_PASSWORD_HASH:?AUTHELIA_BOOTSTRAP_PASSWORD_HASH is required}"
cat > /config/users_database.yml <<EOF
users:
${AUTHELIA_BOOTSTRAP_USER:-wheelz}:
$${AUTHELIA_BOOTSTRAP_USER:-wheelz}:
disabled: false
displayname: "${AUTHELIA_BOOTSTRAP_DISPLAY_NAME:-Wheelz}"
password: "${AUTHELIA_BOOTSTRAP_PASSWORD_HASH}"
email: "${AUTHELIA_BOOTSTRAP_EMAIL:-wheelz@example.invalid}"
displayname: "$${AUTHELIA_BOOTSTRAP_DISPLAY_NAME:-Wheelz}"
password: "$${AUTHELIA_BOOTSTRAP_PASSWORD_HASH}"
email: "$${AUTHELIA_BOOTSTRAP_EMAIL:-wheelz@example.invalid}"
groups:
- admins
- family