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
88e496eb
Commit
88e496eb
authored
Jun 22, 2014
by
Michael Kropat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update setup scripts to auth against the API
parent
447399e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dns.sh
setup/dns.sh
+1
-1
start.sh
setup/start.sh
+2
-2
No files found.
setup/dns.sh
View file @
88e496eb
...
@@ -68,7 +68,7 @@ cat > /etc/cron.daily/mailinabox-dnssec << EOF;
...
@@ -68,7 +68,7 @@ cat > /etc/cron.daily/mailinabox-dnssec << EOF;
#!/bin/bash
#!/bin/bash
# Mail-in-a-Box
# Mail-in-a-Box
# Re-sign any DNS zones with DNSSEC because the signatures expire periodically.
# Re-sign any DNS zones with DNSSEC because the signatures expire periodically.
curl -d GO http://localhost:10222/dns/update
curl -d GO
--user
\$
(</var/lib/mailinabox/api.key):
http://localhost:10222/dns/update
EOF
EOF
chmod
+x /etc/cron.daily/mailinabox-dnssec
chmod
+x /etc/cron.daily/mailinabox-dnssec
...
...
setup/start.sh
View file @
88e496eb
...
@@ -133,8 +133,8 @@ EOF
...
@@ -133,8 +133,8 @@ EOF
# Write the DNS and nginx configuration files.
# Write the DNS and nginx configuration files.
sleep
5
# wait for the daemon to start
sleep
5
# wait for the daemon to start
curl
-s
-d
POSTDATA http://127.0.0.1:10222/dns/update
curl
-s
-d
POSTDATA
--user
$(
</var/lib/mailinabox/api.key
)
:
http://127.0.0.1:10222/dns/update
curl
-s
-d
POSTDATA http://127.0.0.1:10222/web/update
curl
-s
-d
POSTDATA
--user
$(
</var/lib/mailinabox/api.key
)
:
http://127.0.0.1:10222/web/update
# If there aren't any mail users yet, create one.
# If there aren't any mail users yet, create one.
if
[
-z
"
`
tools/mail.py user
`
"
]
;
then
if
[
-z
"
`
tools/mail.py user
`
"
]
;
then
...
...
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