From 23f836447c20fd94d4ca35ae8c9513c42d11cd7b Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 18:44:19 -0500 Subject: [PATCH] added lines to remove old wrestic scripts --- restic/restic-local/install-restic-local.sh | 2 ++ restic/restic-lxc/install-restic-lxc.sh | 2 ++ restic/restic-sftp/install-restic-sftp.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/restic/restic-local/install-restic-local.sh b/restic/restic-local/install-restic-local.sh index c1cd7fa..c4ad8fc 100644 --- a/restic/restic-local/install-restic-local.sh +++ b/restic/restic-local/install-restic-local.sh @@ -3,6 +3,8 @@ rm -r /home/akanealw/.config/wrestic > /dev/null 2>&1 rm -r /root/.config/wrestic > /dev/null 2>&1 rm -r /usr/local/bin/wrestic > /dev/null 2>&1 +rm /home/akanealw/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1 +rm /root/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1 mkdir -p /root/scripts/restic > /dev/null 2>&1 rm /root/scripts/restic/* > /dev/null 2>&1 diff --git a/restic/restic-lxc/install-restic-lxc.sh b/restic/restic-lxc/install-restic-lxc.sh index 401df57..a101946 100644 --- a/restic/restic-lxc/install-restic-lxc.sh +++ b/restic/restic-lxc/install-restic-lxc.sh @@ -3,6 +3,8 @@ rm -r /home/akanealw/.config/wrestic > /dev/null 2>&1 rm -r /root/.config/wrestic > /dev/null 2>&1 rm -r /usr/local/bin/wrestic > /dev/null 2>&1 +rm /home/akanealw/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1 +rm /root/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1 mkdir -p /root/scripts/restic > /dev/null 2>&1 rm /root/scripts/restic/* > /dev/null 2>&1 diff --git a/restic/restic-sftp/install-restic-sftp.sh b/restic/restic-sftp/install-restic-sftp.sh index 877ed7e..bb7a3aa 100644 --- a/restic/restic-sftp/install-restic-sftp.sh +++ b/restic/restic-sftp/install-restic-sftp.sh @@ -3,6 +3,8 @@ rm -r /home/akanealw/.config/wrestic > /dev/null 2>&1 rm -r /root/.config/wrestic > /dev/null 2>&1 rm -r /usr/local/bin/wrestic > /dev/null 2>&1 +rm /home/akanealw/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1 +rm /root/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1 mkdir -p /root/scripts/restic > /dev/null 2>&1 rm /root/scripts/restic/* > /dev/null 2>&1