From 575d3a66c6b0d06d7e8d4d42c52ce224adf4c529 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Fri, 13 Feb 2015 13:11:03 +0000 Subject: [PATCH] more on being smarter about waiting for the management daemon to start cc333b39650a1dfe73f2d4fb00a90aadce177368 worked for fresh systems, but if the system already had the daemon running the api.key file would already exist and the test would pass to early. Now removing the file first. fixes #322 --- setup/management.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/management.sh b/setup/management.sh index ce166ebd..5c0c6920 100755 --- a/setup/management.sh +++ b/setup/management.sh @@ -30,5 +30,8 @@ $(pwd)/management/backup.py EOF chmod +x /etc/cron.daily/mailinabox-backup -# Start it. +# Start it. Remove the api key file first so that start.sh +# can wait for it to be created to know that the management +# server is ready. +rm -f /var/lib/mailinabox/api.key restart_service mailinabox