Allow postgres bootstrap to read generated SQL

This commit is contained in:
Conrad Kramer 2026-04-19 01:22:32 -07:00
parent 2ef804fa10
commit 142c2ef778

View file

@ -204,6 +204,7 @@ END
\$\$;
ALTER ROLE zulip WITH LOGIN PASSWORD '$db_password_sql';
SQL
chmod 0644 "$setup_sql"
${pkgs.util-linux}/bin/runuser -u postgres -- psql -v ON_ERROR_STOP=1 -f "$setup_sql"
'';