ovh-rescue-configure

This commit is contained in:
Marc Beninca 2023-05-15 12:20:00 +02:00
parent 3fc442bf70
commit b170098755

View file

@ -1,4 +1,4 @@
function ovh-rescue-setup { function ovh-rescue-configure {
local packages=( local packages=(
'byobu' 'mosh' 'byobu' 'mosh'
) )
@ -94,7 +94,7 @@ if [ "${host}" ] ; then
rsync --delete --recursive "${MAIN_BASH_ROOT}/" "${user_host}:/etc/bash/" rsync --delete --recursive "${MAIN_BASH_ROOT}/" "${user_host}:/etc/bash/"
# call setup # call setup
# TODO variable # TODO variable
ssh "${user_host}" -- "source '/etc/bash/main.sh' ; ovh-rescue-setup" ssh "${user_host}" -- "source '/etc/bash/main.sh' ; ovh-rescue-configure"
# create session # create session
ssh "${user_host}" -- byobu new-session -d ssh "${user_host}" -- byobu new-session -d
# send keys # send keys