浏览代码

Dynamic dns

Bob Mottram 11 年前
父节点
当前提交
7136389202
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      install-freedombone.sh

+ 1
- 1
install-freedombone.sh 查看文件

2618
   chmod +x /usr/bin/dynamicdns
2618
   chmod +x /usr/bin/dynamicdns
2619
 
2619
 
2620
   if ! grep -q "dynamicdns" /etc/crontab; then
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
   fi
2622
   fi
2623
   service cron restart
2623
   service cron restart
2624
   echo 'dynamic_dns_freedns' >> $COMPLETION_FILE
2624
   echo 'dynamic_dns_freedns' >> $COMPLETION_FILE