diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-08 20:02:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-08 20:02:02 +0000 |
commit | 98ac58933d564a4696e0da1e3b81e357af9f0e62 (patch) | |
tree | 8ef4ef98965e0013d7fcf75da16dc530acf95259 | |
parent | 51170243b0cd13bbe03622994dcd4d491ceb759c (diff) | |
download | pfsense-packages-98ac58933d564a4696e0da1e3b81e357af9f0e62.tar.gz pfsense-packages-98ac58933d564a4696e0da1e3b81e357af9f0e62.tar.bz2 pfsense-packages-98ac58933d564a4696e0da1e3b81e357af9f0e62.zip |
Remove both rows to prevent duplicates
-rw-r--r-- | packages/tinydns/tinydns.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |