瀏覽代碼

Remove legacy freedns updater from crontab if needed

Bob Mottram 9 年之前
父節點
當前提交
911f9d623b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/freedombone-utils-dns

+ 3
- 0
src/freedombone-utils-dns 查看文件

112
     if [ -f /usr/bin/dynamicdns ]; then
112
     if [ -f /usr/bin/dynamicdns ]; then
113
         rm /usr/bin/dynamicdns
113
         rm /usr/bin/dynamicdns
114
     fi
114
     fi
115
+    if grep -q "dynamicdns" /etc/crontab; then
116
+        sed -i '/dynamicdns/d' /etc/crontab
117
+    fi
115
 
118
 
116
     # add the update command to cron
119
     # add the update command to cron
117
     if ! grep -q "/usr/local/bin/freedombone-freedns" /etc/crontab; then
120
     if ! grep -q "/usr/local/bin/freedombone-freedns" /etc/crontab; then