diff --git a/config/cron/crontab b/config/cron/crontab index d5e5d7e9f..9ba52450a 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -25,9 +25,7 @@ HOME=/ 17 5 * * * /etc/init.d/tmpfs backup >/dev/null # Update dynamic DNS records every five minutes. -# Force an update once a month */5 * * * * [ -f "/var/ipfire/red/active" ] && /usr/bin/ddns update-all -3 2 1 * * [ -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/config/rootfiles/core/94/update.sh b/config/rootfiles/core/94/update.sh index 99c5e4f63..1ba38e027 100644 --- a/config/rootfiles/core/94/update.sh +++ b/config/rootfiles/core/94/update.sh @@ -51,6 +51,11 @@ mv -f /etc/ssh/ssh_host_dsa_key{,.old} mv -f /etc/ssh/ssh_host_key{,.old} mv -f /etc/ssh/ssh_host_rsa_key{,.old} +# Update crontab +sed -i /var/spool/cron/root.orig -e "/Force an update once a month/d" +sed -i /var/spool/cron/root.orig -e "/ddns update-all --force/d" +fcrontab -z &>/dev/null + # Start services /etc/init.d/dnsmasq start /etc/init.d/sshd start