From dce03fc9b9c83c5a237d93291503fc213c483455 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 13:05:39 +0100 Subject: [PATCH] bookworm --- bash/ovh-rescue.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bash/ovh-rescue.sh b/bash/ovh-rescue.sh index da6ab26..16f1abf 100644 --- a/bash/ovh-rescue.sh +++ b/bash/ovh-rescue.sh @@ -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