Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
cc333b39
Commit
cc333b39
authored
Feb 10, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
be smarter about waiting for the management daemon to start before accessing it
parent
351758b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
start.sh
setup/start.sh
+7
-4
No files found.
setup/start.sh
View file @
cc333b39
...
@@ -142,10 +142,13 @@ source setup/owncloud.sh
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment