1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

add a --force flag to dns_update

This commit is contained in:
Joshua Tauberer
2014-08-01 12:05:34 +00:00
parent cd59025979
commit 30178ef019
3 changed files with 10 additions and 6 deletions

View File

@@ -1,2 +1,6 @@
#!/bin/bash
curl -s -d POSTDATA --user $(</var/lib/mailinabox/api.key): http://127.0.0.1:10222/dns/update
POSTDATA=dummy
if [ "$1" == "--force" ]; then
POSTDATA=force=1
fi
curl -s -d $POSTDATA --user $(</var/lib/mailinabox/api.key): http://127.0.0.1:10222/dns/update