Fix /var/lib/domains ownership and WordPress ADMIN_EMAIL generation

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/755b414e-9b63-448b-a57c-41d0ca45b5eb

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-08 16:09:10 +00:00
committed by GitHub
parent 3673ccf39b
commit fb4c268b8e
4 changed files with 36 additions and 4 deletions

View File

@@ -73,7 +73,11 @@ lib.mkIf config.sovran_systemsOS.services.wordpress {
DB_HOST="localhost"
ADMIN_USER=$(pwgen -s 16 1)
ADMIN_PASS=$(pwgen -s 24 1)
ADMIN_EMAIL="$ADMIN_USER@''${DOMAIN#*.}"
EMAIL_DOMAIN="''${DOMAIN#*.}"
if ! echo "$EMAIL_DOMAIN" | grep -q '\.'; then
EMAIL_DOMAIN="$DOMAIN"
fi
ADMIN_EMAIL="$ADMIN_USER@$EMAIL_DOMAIN"
echo ""
echo " WordPress Automated Installation"