[Rspamd] Wait for PHP to not break inotify

This commit is contained in:
andryyy committed 2019-10-29 19:58:34 +01:00
1 parent c0f39e5cac
commit 02bb3a44a7
3 files changed
+15 -1

No files matched your search

@@ -1,5 +1,18 @@
#!/bin/bash
echo "Waiting for PHP to settle..."
sleep 10
until nc phpfpm 9001 -z; do
echo "Waiting for PHP on port 9001..."
sleep 3
done
until nc phpfpm 9002 -z; do
echo "Waiting for PHP on port 9002..."
sleep 3
done
mkdir -p /etc/rspamd/plugins.d \
/etc/rspamd/custom