Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-03-04 19:36:06 +0300
committernachoparker <nacho@ownyourbits.com>2018-03-07 16:14:38 +0300
commit1c23fa7bc1c6506d0a3f86657f9b2c9803979f03 (patch)
treed32280f71c07aaa1bd792070c54a08db0f5785e1 /update.sh
parente912749dc66760cd1be2568caf45c85dae2fdcd1 (diff)
nc-backup-auto: change to using cronv0.46.40
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/update.sh b/update.sh
index 08cff322..8fe1ecec 100755
--- a/update.sh
+++ b/update.sh
@@ -46,7 +46,6 @@ NFS.sh
EXCL_DOCKER+="
nc-notify-updates.sh
nc-scan-auto.sh
-nc-backup-auto.sh
freeDNS.sh
"
@@ -128,16 +127,6 @@ done
install_script nc-backup.sh
cd - &>/dev/null
- # update ncp-backup-auto
- cd "$CONFDIR" &>/dev/null
- install_script nc-backup-auto.sh
- cd - &>/dev/null
-
- # refresh nc-backup-auto
- cd "$CONFDIR" &>/dev/null
- grep -q '^ACTIVE_=yes$' nc-backup-auto.sh && activate_script nc-backup-auto.sh
- cd - &>/dev/null
-
# add ncp-config link
[[ -e /usr/local/bin/ncp-config ]] || ln -s /usr/local/bin/nextcloudpi-config /usr/local/bin/ncp-config
@@ -257,6 +246,17 @@ EOF
cd - &>/dev/null
}
+ # update nc-backup-auto to use cron
+ [[ -f /etc/systemd/system/nc-backup.timer ]] && {
+ systemctl stop nc-backup.timer
+ systemctl disable nc-backup.timer
+ rm -f /etc/systemd/system/nc-backup.timer /etc/systemd/system/nc-backup.service
+ cd "$CONFDIR" &>/dev/null
+ grep -q '^ACTIVE_=yes$' "$CONFDIR"/nc-backup-auto.sh && \
+ activate_script nc-backup-auto.sh
+ cd - &>/dev/null
+ }
+
} # end - only live updates
exit 0