From dbb70e9493454e9f57881007815d21fb3f77cb9d Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 10:53:28 -0500 Subject: [PATCH] testing --- restic/restic-sftp/install-restic-sftp.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/restic/restic-sftp/install-restic-sftp.sh b/restic/restic-sftp/install-restic-sftp.sh index ea8c53e..125a282 100644 --- a/restic/restic-sftp/install-restic-sftp.sh +++ b/restic/restic-sftp/install-restic-sftp.sh @@ -13,7 +13,10 @@ mv /root/restic-sftp-* /root/scripts/restic mv /root/export-* /root/scripts/restic chmod +x /root/scripts/restic/* -if [[ ! -f /root/.ssh/config ]]; then touch /root/.ssh/config +if [[ ! -f /root/.ssh/config ]]; then + touch /root/.ssh/config +fi + isInFile=$(cat /root/.ssh/config | grep -c "truenas") if [ $isInFile -eq 0 ] then