]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/rootfiles/core/94/update.sh
core94: fix chrontab modification check for dma.
[ipfire-2.x.git] / config / rootfiles / core / 94 / update.sh
index 7dca2a1fd3a06bac46547b3c745b891ec3c27bde..ff9797c11be72ea67e40f2e07047b4fd44da72ae 100644 (file)
@@ -56,7 +56,7 @@ mv -f /etc/ssh/ssh_host_rsa_key{,.old}
 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"
 
-grep -qv "dma -q" || cat <<EOF >> /var/spool/cron/root.orig
+grep -q "dma -q" /var/spool/cron/root.orig || cat <<EOF >> /var/spool/cron/root.orig
 
 # Retry sending spooled mails regularly
 %hourly * /usr/sbin/dma -q