fix: correct password handling syntax in Supabase template SQL scripts

- Updated the password setting syntax to use backticks for command substitution.
- Ensured the echo command for the POSTGRES_PASSWORD variable is correctly formatted for production environments.
This commit is contained in:
Mauricio Siu
2025-03-15 13:10:41 -06:00
parent 20e3889d4c
commit 0b41b1513d

View File

@@ -325,7 +325,7 @@ config:
- filePath: /volumes/db/roles.sql
content: |
-- NOTE: change to your own passwords for production environments
\set pgpass '$(echo "$POSTGRES_PASSWORD")'
\\set pgpass \`echo "$POSTGRES_PASSWORD"\`
ALTER USER authenticator WITH PASSWORD :'pgpass';
ALTER USER pgbouncer WITH PASSWORD :'pgpass';