mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-18 19:50:35 +02:00
move ssh repair up
This commit is contained in:
@@ -94,6 +94,11 @@ sudo chmod 777 ${infoFile}
|
|||||||
######################################
|
######################################
|
||||||
# CHECK SD CARD INCONSISTENT STATE
|
# CHECK SD CARD INCONSISTENT STATE
|
||||||
|
|
||||||
|
# make sure SSH server certs are configured & sshd is running
|
||||||
|
sudo systemctl stop sshd
|
||||||
|
sudo dpkg-reconfigure openssh-server
|
||||||
|
sudo systemctl start sshd
|
||||||
|
|
||||||
# when the provision did not ran thru without error (ask user for fresh sd card)
|
# when the provision did not ran thru without error (ask user for fresh sd card)
|
||||||
provisionFlagExists=$(sudo ls /home/admin/provision.flag | grep -c 'provision.flag')
|
provisionFlagExists=$(sudo ls /home/admin/provision.flag | grep -c 'provision.flag')
|
||||||
if [ "${provisionFlagExists}" == "1" ]; then
|
if [ "${provisionFlagExists}" == "1" ]; then
|
||||||
@@ -105,11 +110,6 @@ if [ "${provisionFlagExists}" == "1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make sure SSH server certs are configured & sshd is running
|
|
||||||
sudo systemctl stop sshd
|
|
||||||
sudo dpkg-reconfigure openssh-server
|
|
||||||
sudo systemctl start sshd
|
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# SECTION FOR POSSIBLE REBOOT ACTIONS
|
# SECTION FOR POSSIBLE REBOOT ACTIONS
|
||||||
systemInitReboot=0
|
systemInitReboot=0
|
||||||
|
Reference in New Issue
Block a user