diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-03-04 19:36:06 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-03-07 16:14:38 +0300 |
commit | 1c23fa7bc1c6506d0a3f86657f9b2c9803979f03 (patch) | |
tree | d32280f71c07aaa1bd792070c54a08db0f5785e1 /update.sh | |
parent | e912749dc66760cd1be2568caf45c85dae2fdcd1 (diff) |
nc-backup-auto: change to using cronv0.46.40
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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 |