mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
wrap password in quotes
This commit is contained in:
@@ -28,7 +28,7 @@ db_key="$(openssl rand -base64 32)"
|
||||
|
||||
# Setup DB
|
||||
# XXX: Remove || true and detect actual failures
|
||||
su postgres -c "psql -c 'CREATE ROLE ${db_user} WITH LOGIN PASSWORD ${db_password};' || true"
|
||||
su postgres -c "psql -c 'CREATE ROLE ${db_user} WITH LOGIN PASSWORD \"${db_password}\";' || true"
|
||||
su postgres -c "psql -c 'CREATE DATABASE cloudfire;' || true"
|
||||
su postgres -c "psql -c 'GRANT ALL PRIVILEGES ON DATABASE cloudfire to ${db_user};' || true"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user