testing
This commit is contained in:
@@ -13,7 +13,8 @@ mv /root/restic-sftp-* /root/scripts/restic
|
|||||||
mv /root/export-* /root/scripts/restic
|
mv /root/export-* /root/scripts/restic
|
||||||
chmod +x /root/scripts/restic/*
|
chmod +x /root/scripts/restic/*
|
||||||
|
|
||||||
isInFile=$(cat /root/.ssh/config | grep -c "truenas") > /dev/null 2>&1
|
if [[ ! -f /root/.ssh/config ]]; then touch /root/.ssh/config
|
||||||
|
isInFile=$(cat /root/.ssh/config | grep -c "truenas")
|
||||||
if [ $isInFile -eq 0 ]
|
if [ $isInFile -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "" >> /root/.ssh/config
|
echo "" >> /root/.ssh/config
|
||||||
|
|||||||
Reference in New Issue
Block a user