Fakultas Ilmu Komputer UI

Commit 16ea4d63 authored by hashlash's avatar hashlash
Browse files

[CHORES] fix wait for db script

parent d373d051
Pipeline #51491 passed with stage
in 19 minutes and 9 seconds
#!/bin/sh
if [ "$DATABASE" = "postgres" ]
if [ -n "$POSTGRES_DB" ]
then
echo "Waiting for postgres..."
while ! nc -z $SQL_HOST $SQL_PORT; do
while ! nc -z $POSTGRES_HOST $POSTGRES_PORT; do
sleep 0.1
done
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment