浏览代码

Overwrite backup script

Bob Mottram 9 年前
父节点
当前提交
a2e4ed8a94
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0
    6
      src/freedombone

+ 0
- 6
src/freedombone 查看文件

@@ -2949,10 +2949,6 @@ function create_freedns_updater {
2949 2949
 }
2950 2950
 
2951 2951
 function backup_to_friends_servers {
2952
-  if grep -Fxq "backup_to_friends_servers" $COMPLETION_FILE; then
2953
-      return
2954
-  fi
2955
-
2956 2952
   # update crontab
2957 2953
   echo '#!/bin/bash' > /etc/cron.daily/backuptofriends
2958 2954
   echo "if [ -f /usr/local/bin/${PROJECT_NAME}-backup-remote ]; then" >> /etc/cron.daily/backuptofriends
@@ -2961,8 +2957,6 @@ function backup_to_friends_servers {
2961 2957
   echo "    /usr/bin/${PROJECT_NAME}-backup-remote" >> /etc/cron.daily/backuptofriends
2962 2958
   echo 'fi' >> /etc/cron.daily/backuptofriends
2963 2959
   chmod +x /etc/cron.daily/backuptofriends
2964
-
2965
-  echo 'backup_to_friends_servers' >> $COMPLETION_FILE
2966 2960
 }
2967 2961
 
2968 2962
 function remove_default_user {