summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-01-10 20:52:23 +0000
committerLuke Bratch <luke@bratch.co.uk>2019-01-10 20:52:23 +0000
commitfcc553d8d84d9505f4b193da54c6b7806fb561e8 (patch)
tree6fdbf673484dd2a4228c7fb9df6a8d8a8942ef19
parent5b1e9636979b587193250d4dbb2a708a288b27c1 (diff)
Fix some comments
-rw-r--r--dns.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/dns.php b/dns.php
index a21b00f..39ae506 100644
--- a/dns.php
+++ b/dns.php
@@ -119,7 +119,7 @@ function writezone($domain, $zonetext, $password = null) {
echo "<p>Zone file will load, but check below for possible warnings:</p><pre>$zonecheck</pre>";
}
- // Reload the zone if we got this far
+ // Write out the real zone file
$zonewrite = sshrun("echo -en \"$zonetext\" > " . ZONEROOT . "$domain" . ZONESUFFIX . " && echo $? || echo $?");
// Remove any trailing newlines from the returned string
@@ -133,6 +133,7 @@ function writezone($domain, $zonetext, $password = null) {
die();
}
+ // Reload the zone if we got this far
sshrun("rndc reload $domain");
}