mailcow/data/Dockerfiles/rspamd/docker-entrypoint.sh
2017-03-03 23:31:32 +01:00

11 lines
190 B
Bash
Executable File

#!/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