From ab513ad91c519afeedec26827701a1b851632ed0 Mon Sep 17 00:00:00 2001 From: Kload Date: Sun, 7 Jul 2013 08:24:15 +0000 Subject: [PATCH] correct dynette cron --- dynette.cron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dynette.cron.py b/dynette.cron.py index 8daa26b..a2e102e 100755 --- a/dynette.cron.py +++ b/dynette.cron.py @@ -84,11 +84,11 @@ with open(conf_file, 'w') as zone: zone.write(line + '\n') 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) else: os.system('cp '+ conf_file +' '+ conf_file +'.bad') 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") exit(1)