1
0
spogulis no https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07:23 +01:00
Files
mailinabox/tools/dns_update
2022-09-19 14:45:11 -04:00

16 rindas
558 B
Bash
Izpildāmais fails

#!/bin/bash
#####
##### This file is part of Mail-in-a-Box-LDAP which is released under the
##### terms of the GNU Affero General Public License as published by the
##### Free Software Foundation, either version 3 of the License, or (at
##### your option) any later version. See file LICENSE or go to
##### https://github.com/downtownallday/mailinabox-ldap for full license
##### details.
#####
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