diff options
author | Luke Bratch <luke@bratch.co.uk> | 2017-04-13 00:36:53 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2017-04-13 00:36:53 +0100 |
commit | 8d19614249ef1969afe52c8b15c8df929bff6c6c (patch) | |
tree | 11cb2af2b5043a271b09443eda9a974eaae85294 | |
parent | c26575feec1e3d088c6e62a42378819c103a1432 (diff) |
Don't add a (new) newline to zonefiles when writing
-rw-r--r-- | dns.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |