mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
move SSH key restore for SSH tunnel
This commit is contained in:
@@ -179,15 +179,6 @@ else
|
||||
echo "Was not able to get LND port from config." >> ${logFile}
|
||||
fi
|
||||
|
||||
# SSH TUNNEL
|
||||
if [ "${#sshtunnel}" -gt 0 ]; then
|
||||
echo "Provisioning SSH Tunnel - run config script" >> ${logFile}
|
||||
sudo sed -i "s/^message=.*/message='Setup SSH Tunnel'/g" ${infoFile}
|
||||
sudo /home/admin/config.scripts/internet.sshtunnel.py restore ${sshtunnel} >> ${logFile} 2>&1
|
||||
else
|
||||
echo "Provisioning SSH Tunnel - not active" >> ${logFile}
|
||||
fi
|
||||
|
||||
# ROOT SSH KEYS
|
||||
# check if a backup on HDD exists and when retsore back
|
||||
backupRootSSH=$(sudo ls /mnt/hdd/ssh/root_backup 2>/dev/null | grep -c "id_rsa")
|
||||
@@ -199,6 +190,15 @@ else
|
||||
echo "Provisioning Root SSH Keys - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
# SSH TUNNEL
|
||||
if [ "${#sshtunnel}" -gt 0 ]; then
|
||||
echo "Provisioning SSH Tunnel - run config script" >> ${logFile}
|
||||
sudo sed -i "s/^message=.*/message='Setup SSH Tunnel'/g" ${infoFile}
|
||||
sudo /home/admin/config.scripts/internet.sshtunnel.py restore ${sshtunnel} >> ${logFile} 2>&1
|
||||
else
|
||||
echo "Provisioning SSH Tunnel - not active" >> ${logFile}
|
||||
fi
|
||||
|
||||
# replay backup LND dir (especially for macaroons and tlscerts)
|
||||
# https://github.com/rootzoll/raspiblitz/issues/324
|
||||
echo "" >> ${logFile}
|
||||
|
Reference in New Issue
Block a user