aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-08 20:02:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-08 20:02:02 +0000
commit98ac58933d564a4696e0da1e3b81e357af9f0e62 (patch)
tree8ef4ef98965e0013d7fcf75da16dc530acf95259 /packages/tinydns
parent51170243b0cd13bbe03622994dcd4d491ceb759c (diff)
downloadpfsense-packages-98ac58933d564a4696e0da1e3b81e357af9f0e62.tar.gz
pfsense-packages-98ac58933d564a4696e0da1e3b81e357af9f0e62.tar.bz2
pfsense-packages-98ac58933d564a4696e0da1e3b81e357af9f0e62.zip
Remove both rows to prevent duplicates
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/tinydns.inc2
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");