Browse Source

Dynamic dns

Bob Mottram 11 years ago
parent
commit
7136389202
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      install-freedombone.sh

+ 1
- 1
install-freedombone.sh View File

@@ -2618,7 +2618,7 @@ function dynamic_dns_freedns {
2618 2618
   chmod +x /usr/bin/dynamicdns
2619 2619
 
2620 2620
   if ! grep -q "dynamicdns" /etc/crontab; then
2621
-    sed -i '/# m h dom mon dow user command/a\*/5 * * * * root /usr/bin/timeout 240 /usr/bin/dynamicdns' /etc/crontab
2621
+    echo '*/5 * * * * root /usr/bin/timeout 240 /usr/bin/dynamicdns' >> /etc/crontab
2622 2622
   fi
2623 2623
   service cron restart
2624 2624
   echo 'dynamic_dns_freedns' >> $COMPLETION_FILE