2014-06-23 10:53:09 +00:00
|
|
|
#!/bin/bash
|
2014-08-01 12:05:34 +00:00
|
|
|
POSTDATA=dummy
|
|
|
|
if [ "$1" == "--force" ]; then
|
|
|
|
POSTDATA=force=1
|
|
|
|
fi
|
2023-12-21 14:58:34 +00:00
|
|
|
curl -s -d $POSTDATA --user "$(</var/lib/mailinabox/api.key):" http://127.0.0.1:10222/dns/update
|