]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Replace setddns.pl by new ddns tool.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Jul 2014 10:58:18 +0000 (12:58 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Jul 2014 10:58:18 +0000 (12:58 +0200)
config/cron/crontab
src/initscripts/init.d/networking/red.up/30-ddns

index 92c3a78ba74cf9267daaadd49d2bd6c5d362877b..f7973a5e0a74e30b6379d9b3762d9d2bed7db359 100644 (file)
@@ -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`; \
index 66d6fdb60a3d959ea2a46ce682f0181cfbd76344..6eba04b06e9d62454d36c4c7cc056a3d7859a5fb 100644 (file)
@@ -1,5 +1,3 @@
 #!/bin/bash
 
-/usr/local/bin/setddns.pl -f
-
-exit 0
+exec /usr/bin/ddns update-all --force