Rspamd: Wait for maps and settings

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

No files matched your search

@@ -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