Update init_db.sh (#87)

Quote also the user variable
This commit is contained in:
Filmon Arefayne 2021-04-02 12:40:49 +02:00 committed by GitHub
parent 0a6265fe60
commit 537f2e783e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ set -x
set -eo pipefail set -eo pipefail
# Check if a custom user has been set, otherwise default to 'postgres' # Check if a custom user has been set, otherwise default to 'postgres'
DB_USER=${POSTGRES_USER:=postgres} DB_USER="${POSTGRES_USER:=postgres}"
# Check if a custom password has been set, otherwise default to 'password' # Check if a custom password has been set, otherwise default to 'password'
DB_PASSWORD="${POSTGRES_PASSWORD:=password}" DB_PASSWORD="${POSTGRES_PASSWORD:=password}"
# Check if a custom password has been set, otherwise default to 'newsletter' # Check if a custom password has been set, otherwise default to 'newsletter'