summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2017-04-13 00:36:53 +0100
committerLuke Bratch <luke@bratch.co.uk>2017-04-13 00:36:53 +0100
commit8d19614249ef1969afe52c8b15c8df929bff6c6c (patch)
tree11cb2af2b5043a271b09443eda9a974eaae85294
parentc26575feec1e3d088c6e62a42378819c103a1432 (diff)
Don't add a (new) newline to zonefiles when writing
-rw-r--r--dns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns.php b/dns.php
index d68245c..b17b810 100644
--- a/dns.php
+++ b/dns.php
@@ -91,7 +91,7 @@ function writezone($domain, $password, $zonetext) {
$zonetext = str_replace('$', '\$', $zonetext);
- sshrun("echo -e \"$zonetext\" > " . ZONEROOT . "$domain" . ZONESUFFIX);
+ sshrun("echo -en \"$zonetext\" > " . ZONEROOT . "$domain" . ZONESUFFIX);
sshrun("rndc reload $domain");
}