bookworm
This commit is contained in:
parent
9b830a7d36
commit
dce03fc9b9
1 changed files with 9 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
ovh_rescue_configure() {
|
ovh_rescue_configure() {
|
||||||
local host="${1}"
|
local host="${1}"
|
||||||
|
local release="bookworm"
|
||||||
# apt / conf
|
# apt / conf
|
||||||
printf "\
|
printf "\
|
||||||
Acquire::AllowInsecureRepositories False;
|
Acquire::AllowInsecureRepositories False;
|
||||||
|
@ -41,16 +42,20 @@ fr_FR.UTF-8 UTF-8
|
||||||
debian_disable_frontend
|
debian_disable_frontend
|
||||||
# install packages
|
# install packages
|
||||||
apt-get install --assume-yes \
|
apt-get install --assume-yes \
|
||||||
"tmux" \
|
|
||||||
\
|
|
||||||
"byobu" \
|
"byobu" \
|
||||||
"mosh"
|
"mosh"
|
||||||
# clean cache
|
# clean cache
|
||||||
apt_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() {
|
ovh_rescue_install() {
|
||||||
local release="buster"
|
local release="bookworm"
|
||||||
# update catalog
|
# update catalog
|
||||||
apt-get update
|
apt-get update
|
||||||
#
|
#
|
||||||
|
@ -100,7 +105,7 @@ ovh_rescue_upload() {
|
||||||
# call setup
|
# call setup
|
||||||
# TODO variable
|
# TODO variable
|
||||||
ssh "${user_host}" -- \
|
ssh "${user_host}" -- \
|
||||||
"source \"/etc/bash/main.sh\" ; ovh-rescue-configure \"${host}\""
|
"source \"/etc/bash/main.sh\" ; ovh_rescue_configure \"${host}\""
|
||||||
# create session
|
# create session
|
||||||
ssh "${user_host}" -- byobu new-session -d
|
ssh "${user_host}" -- byobu new-session -d
|
||||||
# send keys
|
# send keys
|
||||||
|
|
Loading…
Reference in a new issue