From a6794072490890cb369d8a00df2e72e9457d94f8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 6 Jul 2014 12:58:18 +0200 Subject: [PATCH] Replace setddns.pl by new ddns tool. --- config/cron/crontab | 10 ++++------ src/initscripts/init.d/networking/red.up/30-ddns | 4 +--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/config/cron/crontab b/config/cron/crontab index 92c3a78ba7..f7973a5e0a 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -24,12 +24,10 @@ HOME=/ */5 * * * * /usr/local/bin/makegraphs >/dev/null 17 5 * * * /etc/init.d/tmpfs backup >/dev/null -# Force update the dynamic dns registration once a week -# Force update even if IP has not changed once a month if 'minimize update' selected in GUI -# to avoid account declared as dead -*/5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -9 2 * * 0 [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f -3 2 1 * * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/setddns.pl -f -m +# Update dynamic DNS records every five minutes. +# Force an update once a week +*/5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all +9 2 * * 0 [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all --force # Logwatch 01 0 * * * /usr/local/bin/logwatch > /var/log/logwatch/`date -I -d yesterday`; \ diff --git a/src/initscripts/init.d/networking/red.up/30-ddns b/src/initscripts/init.d/networking/red.up/30-ddns index 66d6fdb60a..6eba04b06e 100644 --- a/src/initscripts/init.d/networking/red.up/30-ddns +++ b/src/initscripts/init.d/networking/red.up/30-ddns @@ -1,5 +1,3 @@ #!/bin/bash -/usr/local/bin/setddns.pl -f - -exit 0 +exec /usr/bin/ddns update-all --force -- 2.39.5