Overwrite backup script
This commit is contained in:
parent
ed3fd72ebb
commit
a2e4ed8a94
|
@ -2949,10 +2949,6 @@ function create_freedns_updater {
|
|||
}
|
||||
|
||||
function backup_to_friends_servers {
|
||||
if grep -Fxq "backup_to_friends_servers" $COMPLETION_FILE; then
|
||||
return
|
||||
fi
|
||||
|
||||
# update crontab
|
||||
echo '#!/bin/bash' > /etc/cron.daily/backuptofriends
|
||||
echo "if [ -f /usr/local/bin/${PROJECT_NAME}-backup-remote ]; then" >> /etc/cron.daily/backuptofriends
|
||||
|
@ -2961,8 +2957,6 @@ function backup_to_friends_servers {
|
|||
echo " /usr/bin/${PROJECT_NAME}-backup-remote" >> /etc/cron.daily/backuptofriends
|
||||
echo 'fi' >> /etc/cron.daily/backuptofriends
|
||||
chmod +x /etc/cron.daily/backuptofriends
|
||||
|
||||
echo 'backup_to_friends_servers' >> $COMPLETION_FILE
|
||||
}
|
||||
|
||||
function remove_default_user {
|
||||
|
|
Loading…
Reference in New Issue