This commit is contained in:
2024-03-14 10:53:28 -05:00
parent a1d38c874d
commit dbb70e9493

View File

@@ -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