diff --git a/restic/restic-local/install-restic-local.sh b/restic/restic-local/install-restic-local.sh index 233b7ae..c1cd7fa 100644 --- a/restic/restic-local/install-restic-local.sh +++ b/restic/restic-local/install-restic-local.sh @@ -1,5 +1,9 @@ #!/bin/bash +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 + mkdir -p /root/scripts/restic > /dev/null 2>&1 rm /root/scripts/restic/* > /dev/null 2>&1 wget -q http://192.168.1.50/scripts/restic/restic-local/restic-local-backup.sh -P /root/scripts/restic diff --git a/restic/restic-lxc/install-restic-lxc.sh b/restic/restic-lxc/install-restic-lxc.sh index 09a6235..401df57 100644 --- a/restic/restic-lxc/install-restic-lxc.sh +++ b/restic/restic-lxc/install-restic-lxc.sh @@ -1,5 +1,9 @@ #!/bin/bash +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 + mkdir -p /root/scripts/restic > /dev/null 2>&1 rm /root/scripts/restic/* > /dev/null 2>&1 wget -q http://192.168.1.50/scripts/restic/restic-lxc/restic-lxc-backup.sh -P /root/scripts/restic diff --git a/restic/restic-sftp/install-restic-sftp.sh b/restic/restic-sftp/install-restic-sftp.sh index 4b25595..877ed7e 100644 --- a/restic/restic-sftp/install-restic-sftp.sh +++ b/restic/restic-sftp/install-restic-sftp.sh @@ -1,5 +1,9 @@ #!/bin/bash +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 + mkdir -p /root/scripts/restic > /dev/null 2>&1 rm /root/scripts/restic/* > /dev/null 2>&1 wget -q http://192.168.1.50/scripts/restic/restic-sftp/restic-sftp-backup.sh -P /root/scripts/restic