mailcow/data/Dockerfiles/rspamd/docker-entrypoint.sh

11 lines
190 B
Bash
Raw Normal View History

2017-03-04 06:31:32 +08:00
#!/bin/bash
set -e
while true; do
SC=$(curl -s -o /dev/null -w "%{http_code}" http://nginx:8081/settings.php)
if [[ ${SC} == "200" ]]; then
sleep 3
exec "$@"
fi
sleep 3
done