fix: exec to replace environment.sh

This commit is contained in:
Steven Tang 2022-01-03 12:02:11 +11:00
parent b66f9b5cf5
commit 4f183ed637
No known key found for this signature in database
GPG Key ID: AA0C5A4496B7ADF5
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
if [ "$WAKAPI_DB_TYPE" == "sqlite3" ] || [ "$WAKAPI_DB_TYPE" == "" ]; then
./wakapi
exec ./wakapi
else
echo "Waiting for database to come up"
./wait-for-it.sh "$WAKAPI_DB_HOST:$WAKAPI_DB_PORT" -s -t 60 -- ./wakapi
fi
exec ./wait-for-it.sh "$WAKAPI_DB_HOST:$WAKAPI_DB_PORT" -s -t 60 -- ./wakapi
fi