From 98ac58933d564a4696e0da1e3b81e357af9f0e62 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 8 Dec 2006 20:02:02 +0000 Subject: Remove both rows to prevent duplicates --- packages/tinydns/tinydns.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/tinydns') diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc index b84859d5..e0cf91c9 100644 --- a/packages/tinydns/tinydns.inc +++ b/packages/tinydns/tinydns.inc @@ -122,6 +122,7 @@ function tinydns_custom_php_changeip_command() { $text_1 = "*/1 * * * * root /usr/bin/nice -n20 /etc/ping_hosts.sh"; $text_5 = "*/5 * * * * root /usr/bin/nice -n20 /etc/ping_hosts.sh"; $filenamea = "/etc/crontab"; + remove_text_from_file($filenamea, $text_1); remove_text_from_file($filenamea, $text_5); add_text_to_file($filenamea, $text_1); } else { @@ -129,6 +130,7 @@ function tinydns_custom_php_changeip_command() { $text_5 = "*/5 * * * * root /usr/bin/nice -n20 /etc/ping_hosts.sh"; $filenamea = "/etc/crontab"; remove_text_from_file($filenamea, $text_1); + remove_text_from_file($filenamea, $text_5); add_text_to_file($filenamea, $text_5); } exec("killall -HUP cron"); -- cgit v1.2.3