X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/b93521c8aa60ed1d6dc5d537dd13aaddaf910344..4bb53e0a26ae3691e4da4866fb949646b35dc80c:/server-scripts/update?ds=inline diff --git a/server-scripts/update b/server-scripts/update index 02a52c3..5fc519b 100755 --- a/server-scripts/update +++ b/server-scripts/update @@ -38,10 +38,10 @@ if "password" not in form or "domain" not in form or ("ip" not in form and "ipv6 print "Mandatory argument missing: You must supply all of 'password', 'domain' and at least either 'ip' or 'ipv6'" sys.exit() -domain = str(form.getvalue("domain")) -password = str(form.getvalue("password")) -ip = str(form.getvalue("ip")) -ipv6 = str(form.getvalue("ipv6")) +domain = form.getfirst("domain") +password = form.getfirst("password") +ip = form.getfirst("ip") +ipv6 = form.getfirst("ipv6") # run update program args = ["/var/lib/bind/dyn-nsupdate", "--domain", domain, "--password", password]