mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 10:00:07 +09:00
avoid race condition with initial ssh key generation on first boot
This commit is contained in:
parent
f49ec71c75
commit
27bb12eec0
@ -138,6 +138,10 @@ do_memory_split() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_ssh() {
|
do_ssh() {
|
||||||
|
if [ -e /var/log/regen_ssh_keys.log ] && ! grep -q "^finished"; then
|
||||||
|
whiptail --msgbox "Initial ssh key generation still running. Please wait and try again." 20 60 2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
whiptail --yesno "Would you like the SSH server enabled or disabled?" 20 60 2 \
|
whiptail --yesno "Would you like the SSH server enabled or disabled?" 20 60 2 \
|
||||||
--yes-button Enable --no-button Disable
|
--yes-button Enable --no-button Disable
|
||||||
RET=$?
|
RET=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user