Rspamd: Wait for maps and settings
This commit is contained in:
10
data/Dockerfiles/rspamd/docker-entrypoint.sh
Normal file
10
data/Dockerfiles/rspamd/docker-entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user