We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 643b789 commit f95e1a9Copy full SHA for f95e1a9
scripts/init_db.sh
@@ -22,6 +22,8 @@ DB_PASSWORD="${POSTGRES_PASSWORD:=password}"
22
DB_NAME="${POSTGRES_DB:=newsletter}"
23
# Check if a custom port has been set, otherwise default to '5432'
24
DB_PORT="${POSTGRES_PORT:=5432}"
25
+# stop postgres if it's already running
26
+sudo systemctl stop postgresql
27
# Launch postgres using Docker
28
docker run \
29
-e POSTGRES_USER=${DB_USER} \
0 commit comments