aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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");