mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
[mod] write the whole file at once
This commit is contained in:
parent
2e9f63efe2
commit
e51f1eb11a
1 changed files with 1 additions and 2 deletions
|
@ -105,8 +105,7 @@ os.system('cp '+ conf_file +' '+ conf_file +'.back')
|
||||||
|
|
||||||
# Write Bind configuration file.
|
# Write Bind configuration file.
|
||||||
with open(conf_file, 'w') as zone:
|
with open(conf_file, 'w') as zone:
|
||||||
for line in lines:
|
zone.write('\n'.join(lines) + '\n')
|
||||||
zone.write(line + '\n')
|
|
||||||
|
|
||||||
# Restore ownership
|
# Restore ownership
|
||||||
os.system('chown -R bind:bind '+ zone_dir +' '+ conf_file)
|
os.system('chown -R bind:bind '+ zone_dir +' '+ conf_file)
|
||||||
|
|
Loading…
Add table
Reference in a new issue