6 lines
174 B
Bash
Executable file
6 lines
174 B
Bash
Executable file
#!/bin/bash
|
|
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
|