projects
/
dyn-nsupdate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tab -> whitespaces
[dyn-nsupdate.git]
/
server-scripts
/
update
diff --git
a/server-scripts/update
b/server-scripts/update
index 3b3ab5308ee35cf208eb6b27df60d2feb277d0a2..c45df300b148fb0c40c4428a7c051d59c73478c2 100755
(executable)
--- a/
server-scripts/update
+++ b/
server-scripts/update
@@
-43,14
+43,14
@@
domain = form["domain"].value
password = form["password"].value
# run update program
password = form["password"].value
# run update program
-p = subprocess.Popen(["/var/lib/
name
d/dyn-nsupdate", domain, password, ip], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+p = subprocess.Popen(["/var/lib/
bin
d/dyn-nsupdate", domain, password, ip], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(stdout, stderr) = p.communicate()
# check what it did
if p.returncode or stderr or stdout:
(stdout, stderr) = p.communicate()
# check what it did
if p.returncode or stderr or stdout:
-
# error :/
-
print "There was an error while updating the DNS: Return code %d" % p.returncode
-
if stdout: print stdout
-
if stderr: print stderr
+ # error :/
+ print "There was an error while updating the DNS: Return code %d" % p.returncode
+ if stdout: print stdout
+ if stderr: print stderr
else:
else:
-
print "good",ip
+ print "good",ip