mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Merge pull request #54 from npze/npzedev
This commit is contained in:
commit
063bbe2da2
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue