send keys to install

This commit is contained in:
Marc Beninca 2023-05-13 11:30:41 +02:00
parent 76d233d4f7
commit f4f5eb31c9

View file

@ -94,6 +94,8 @@ if [ "${host}" ] ; then
ssh "${user_host}" -- "source '/etc/bash/main.sh' ; ovh-rescue-setup" ssh "${user_host}" -- "source '/etc/bash/main.sh' ; ovh-rescue-setup"
# create session # create session
ssh "${user_host}" -- byobu new-session -d ssh "${user_host}" -- byobu new-session -d
# send keys
ssh "${user_host}" -- byobu send-keys 'ovh-rescue-install' 'C-m'
# attach session # attach session
mosh "${user_host}" -- byobu attach-session mosh "${user_host}" -- byobu attach-session
else else