Rspamd: Wait for maps and settings

This commit is contained in:
andryyy
2017-03-03 22:26:50 +01:00
parent ef7a77ef47
commit b656fedca6
2 changed files with 15 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
#!/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