1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/entrypoint.sh

9 lines
234 B
Bash
Raw Normal View History

#!/bin/bash
if [ "$WAKAPI_DB_TYPE" == "sqlite3" ] || [ "$WAKAPI_DB_TYPE" == "" ]; then
2022-01-03 04:02:11 +03:00
exec ./wakapi
else
echo "Waiting for database to come up"
2022-01-03 04:02:11 +03:00
exec ./wait-for-it.sh "$WAKAPI_DB_HOST:$WAKAPI_DB_PORT" -s -t 60 -- ./wakapi
fi