This commit is contained in:
Marc Beninca 2024-11-11 13:05:39 +01:00
parent 9b830a7d36
commit dce03fc9b9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -2,6 +2,7 @@
ovh_rescue_configure() {
local host="${1}"
local release="bookworm"
# apt / conf
printf "\
Acquire::AllowInsecureRepositories False;
@ -41,16 +42,20 @@ fr_FR.UTF-8 UTF-8
debian_disable_frontend
# install packages
apt-get install --assume-yes \
"tmux" \
\
"byobu" \
"mosh"
# clean cache
apt_clean_cache
# install backports
apt-get install --assume-yes \
--target-release "${release}-backports" \
"tmux"
# clean cache
apt_clean_cache
}
ovh_rescue_install() {
local release="buster"
local release="bookworm"
# update catalog
apt-get update
#
@ -100,7 +105,7 @@ ovh_rescue_upload() {
# call setup
# TODO variable
ssh "${user_host}" -- \
"source \"/etc/bash/main.sh\" ; ovh-rescue-configure \"${host}\""
"source \"/etc/bash/main.sh\" ; ovh_rescue_configure \"${host}\""
# create session
ssh "${user_host}" -- byobu new-session -d
# send keys