mirror of https://github.com/ctk-hq/ctk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
483 B
Bash
22 lines
483 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ "${DB_REMOTE}" = False ]; then
|
|
echo "Waiting for Postgres..."
|
|
|
|
while ! pg_isready -h "postgres" -p "5432" > /dev/null 2> /dev/null; do
|
|
echo "Connecting to postgres Failed"
|
|
sleep 1
|
|
done
|
|
|
|
>&2 echo "Postgres is up - executing command"
|
|
fi
|
|
|
|
rm -rf /tmp/uwsgi && \
|
|
mkdir -p /tmp/uwsgi && \
|
|
ln -s /home/config/uwsgi/uwsgi.ini /tmp/uwsgi/
|
|
|
|
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
|
|
|
|
exec "$@" |