Merge pull request #54 from npze/npzedev

This commit is contained in:
Alexis Gavoty 2013-12-18 02:52:02 -08:00
commit 063bbe2da2

View file

@ -164,6 +164,9 @@ def domain_add(domains, main=False, dyndns=False):
with open('/var/lib/bind/' + domain + '.zone', 'w') as zone:
for line in zone_lines:
zone.write(line + '\n')
os.system('chown bind /var/lib/bind/' + domain + '.zone')
else:
raise YunoHostError(17, _("Zone file already exists for ") + domain)