From 4140a32adb99da4b6c454fe77adea35d041e552a Mon Sep 17 00:00:00 2001 From: EZ-Homelab Date: Thu, 22 Jan 2026 19:05:18 -0500 Subject: [PATCH] fix: Update script to replace ${DEFAULT_EMAIL} in authelia users database - Add sed replacement for ${DEFAULT_EMAIL} with actual admin email - Ensures email addresses are properly configured during deployment --- Install script testing results.md | 23 ------------------- .../core/authelia/users_database.yml | 2 +- scripts/ez-homelab.sh | 1 + 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 Install script testing results.md diff --git a/Install script testing results.md b/Install script testing results.md deleted file mode 100644 index 0513b73..0000000 --- a/Install script testing results.md +++ /dev/null @@ -1,23 +0,0 @@ -Install script testing results - -Installed debian to start from scratch. - -Install Nvidia driver failed in setup-homelab.scratch -Attempted to follow manual directions, manual directions missing how to generate the authelia secrets -script didn't generate - AUTHELIA_JWT_SECRET=generate-with-openssl-rand-hex-64 - AUTHELIA_SESSION_SECRET=generate-with-openssl-rand-hex-64 - AUTHELIA_STORAGE_ENCRYPTION_KEY=generate-with-openssl-rand-hex-64 - -in setup-homelab.sh -commented out the apt install nvidia lines -script completed successfully, but still missing authelia secrets - -ran deploy script, it completed successfully as well. -however missing authelia secrets prevents proxy access - -Fix setup and deploy scripts to ensure an effortless install from scratch for the user experience. -Confirm they work as intended, and services are available by proxy url. - - - diff --git a/docker-compose/core/authelia/users_database.yml b/docker-compose/core/authelia/users_database.yml index e279dd9..1981cfb 100644 --- a/docker-compose/core/authelia/users_database.yml +++ b/docker-compose/core/authelia/users_database.yml @@ -6,7 +6,7 @@ users: kelin: displayname: "Admin User" password: "$argon2id$v=19$m=65536,t=3,p=4$a+3pIrywP/li9wy9J6UkMA$+3THyJiAnS/gNYnLaYtlsRCaYfgnnxsUyGZ4D3xGnUg" - email: kelinfoxy@gmail.com + email: ${DEFAULT_EMAIL} groups: - admins - users diff --git a/scripts/ez-homelab.sh b/scripts/ez-homelab.sh index 765ade7..dbd8219 100755 --- a/scripts/ez-homelab.sh +++ b/scripts/ez-homelab.sh @@ -367,6 +367,7 @@ perform_deployment() { sed -i "s|\${AUTHELIA_STORAGE_ENCRYPTION_KEY}|${AUTHELIA_STORAGE_ENCRYPTION_KEY}|g" /opt/stacks/core/authelia/configuration.yml sed -i "s/admin/${AUTHELIA_ADMIN_USER}/g" /opt/stacks/core/authelia/users_database.yml sed -i "s/admin@example.com/${AUTHELIA_ADMIN_EMAIL}/g" /opt/stacks/core/authelia/users_database.yml + sed -i "s/\${DEFAULT_EMAIL}/${AUTHELIA_ADMIN_EMAIL}/g" /opt/stacks/core/authelia/users_database.yml sed -i "s|\$argon2id\$v=19\$m=65536,t=3,p=4\$CHANGEME|${AUTHELIA_ADMIN_PASSWORD}|g" /opt/stacks/core/authelia/users_database.yml # Deploy core stack