This commit is contained in:
Dennis Reimann 2020-07-07 07:53:02 +02:00
parent 09837be5ae
commit 345dc184be
No known key found for this signature in database
GPG Key ID: 5009E1797F03F8D0

View File

@ -335,7 +335,7 @@ else
fi
# ROOT SSH KEYS
# check if a backup on HDD exists and when retsore back
# check if a backup on HDD exists  if so, restore it
backupRootSSH=$(sudo ls /mnt/hdd/ssh/root_backup 2>/dev/null | grep -c "id_rsa")
if [ ${backupRootSSH} -gt 0 ]; then
echo "Provisioning Root SSH Keys - RESTORING from HDD" >> ${logFile}