mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
correct dynette cron
This commit is contained in:
parent
cc70ce072e
commit
ab513ad91c
1 changed files with 2 additions and 2 deletions
|
@ -84,11 +84,11 @@ with open(conf_file, 'w') as zone:
|
||||||
zone.write(line + '\n')
|
zone.write(line + '\n')
|
||||||
|
|
||||||
os.system('chown -R bind:bind '+ zone_dir +' '+ conf_file)
|
os.system('chown -R bind:bind '+ zone_dir +' '+ conf_file)
|
||||||
if os.system('rndc reload') == 0:
|
if os.system('/usr/sbin/rndc reload') == 0:
|
||||||
exit(0)
|
exit(0)
|
||||||
else:
|
else:
|
||||||
os.system('cp '+ conf_file +' '+ conf_file +'.bad')
|
os.system('cp '+ conf_file +' '+ conf_file +'.bad')
|
||||||
os.system('cp '+ conf_file +'.back '+ conf_file)
|
os.system('cp '+ conf_file +'.back '+ conf_file)
|
||||||
os.system('rndc reload')
|
os.system('/usr/sbin/rndc reload')
|
||||||
print("An error occured ! Please check daemon.log and your conf.bad")
|
print("An error occured ! Please check daemon.log and your conf.bad")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in a new issue