mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
[fix] do not exit on success bind reload
This commit is contained in:
parent
e2120ed8f0
commit
2cc808333f
1 changed files with 1 additions and 3 deletions
|
@ -144,9 +144,7 @@ with psycopg2.connect(postgresql_dsn) as postgresql_connection:
|
|||
os.system('chown -R bind:bind '+ zone_dir +' '+ conf_file)
|
||||
|
||||
# Reload Bind
|
||||
if os.system('/usr/sbin/rndc reload') == 0:
|
||||
sys.exit(0)
|
||||
else:
|
||||
if os.system('/usr/sbin/rndc reload') != 0:
|
||||
os.system('cp '+ conf_file +' '+ conf_file +'.bad')
|
||||
os.system('cp '+ conf_file +'.back '+ conf_file)
|
||||
os.system('/usr/sbin/rndc reload')
|
||||
|
|
Loading…
Reference in a new issue