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