TelegramApiServer/entrypoint.sh

12 lines
322 B
Bash
Raw Normal View History

2024-05-23 18:32:21 +02:00
#!/usr/bin/env sh
2023-01-16 11:55:53 +01:00
2024-06-17 19:23:36 +02:00
VERSION=1.0.0
CURRENT_VERSION=$(cat /tas_version)
if [ "$VERSION" != "$CURRENT_VERSION" ]; then
echo "Wrong docker image version, expected $VERSION, got $CURRENT_VERSION, please run docker compose pull!"
exit 1
fi
2023-01-16 11:55:53 +01:00
docker-compose-wait \
&& nice -n 20 php server.php -e=.env.docker --docker "$@"