1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-18 18:07:22 +01:00

Use netcat to check if mailinabox webservice is available

[JT added installing netcat-openbsd in system.sh]
This commit is contained in:
Toilal
2015-04-04 17:44:14 +02:00
committed by Joshua Tauberer
parent 5edaeb8c7b
commit ce17c12ca2
3 changed files with 5 additions and 6 deletions

View File

@@ -103,7 +103,8 @@ source setup/management.sh
source setup/munin.sh
# Ping the management daemon to write the DNS and nginx configuration files.
while [ ! -f /var/lib/mailinabox/api.key ]; do
until nc -z -w 4 localhost 10222
do
echo Waiting for the Mail-in-a-Box management daemon to start...
sleep 2
done