Browse Source

Overwrite backup script

Bob Mottram 9 years ago
parent
commit
a2e4ed8a94
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      src/freedombone

+ 0
- 6
src/freedombone View File

@@ -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 {