diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ncp/BACKUPS/nc-snapshot-sync.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp/BACKUPS/nc-snapshot-sync.sh b/bin/ncp/BACKUPS/nc-snapshot-sync.sh index 79a11d8a..2f965bd4 100644 --- a/bin/ncp/BACKUPS/nc-snapshot-sync.sh +++ b/bin/ncp/BACKUPS/nc-snapshot-sync.sh @@ -15,12 +15,12 @@ install() apt-get install -y --no-install-recommends pv openssh-client wget https://raw.githubusercontent.com/nachoparker/btrfs-sync/master/btrfs-sync -O /usr/local/bin/btrfs-sync chmod +x /usr/local/bin/btrfs-sync - ssh-keygen -N "" -f /root/.ssh/id_rsa + if ! [[ -f /root/.ssh/id_rsa ]]; then ssh-keygen -N "" -f /root/.ssh/id_rsa; fi } configure() { - [[ $ACTIVE != "yes" ]] && { + [[ $ACTIVE != "yes" ]] && { rm -f /etc/cron.d/ncp-snapsync-auto service cron restart echo "snapshot sync disabled" |