mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Fix postinst quotes
This commit is contained in:
@@ -28,9 +28,9 @@ 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 DATABASE cloudfire;' || true"
|
||||
su postgres -c "psql -c 'GRANT ALL PRIVILEGES ON DATABASE cloudfire to ${db_user};' || 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"
|
||||
|
||||
# Write CloudFire SSL files
|
||||
mkdir -p /opt/cloudfire/ssl
|
||||
|
||||
Reference in New Issue
Block a user