mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-23 02:27:05 +00:00
be smarter about waiting for the management daemon to start before accessing it
This commit is contained in:
parent
351758b3bd
commit
cc333b3965
@ -142,10 +142,13 @@ source setup/owncloud.sh
|
|||||||
source setup/zpush.sh
|
source setup/zpush.sh
|
||||||
source setup/management.sh
|
source setup/management.sh
|
||||||
|
|
||||||
# Write the DNS and nginx configuration files.
|
# Ping the management daemon to write the DNS and nginx configuration files.
|
||||||
sleep 5 # wait for the daemon to start
|
while [ ! -f /var/lib/mailinabox/api.key ]; do
|
||||||
curl -s -d POSTDATA --user $(</var/lib/mailinabox/api.key): http://127.0.0.1:10222/dns/update
|
echo Waiting for the Mail-in-a-Box management daemon to start...
|
||||||
curl -s -d POSTDATA --user $(</var/lib/mailinabox/api.key): http://127.0.0.1:10222/web/update
|
sleep 2
|
||||||
|
done
|
||||||
|
tools/dns_update
|
||||||
|
tools/web_update
|
||||||
|
|
||||||
# If there aren't any mail users yet, create one.
|
# If there aren't any mail users yet, create one.
|
||||||
source setup/firstuser.sh
|
source setup/firstuser.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user