Fix db password

This commit is contained in:
soraefir
2026-05-06 02:24:26 +02:00
parent c57f19b18d
commit 02a8ffeb10
3 changed files with 7 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ in {
$PSQL -tAc "ALTER DATABASE ${name}_db OWNER TO ${name}_user;"
if [ -f "${config.sops.secrets."${name}_pass".path}" ]; then
PASS=$(cat "${config.sops.secrets."${name}_pass".path}")
PASS=''$(cut -d'=' -f2- "${config.sops.secrets."${name}_pass".path}")
$PSQL -tAc "ALTER USER ${name}_user WITH PASSWORD '$PASS';"
fi
'') allApps}