From 8ab6d5758df050dbb157811246e6a0ee44e536c2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 14:03:33 +0100 Subject: [PATCH] install --- bash/ovh-rescue.sh | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/bash/ovh-rescue.sh b/bash/ovh-rescue.sh index a725271..8c3d07b 100644 --- a/bash/ovh-rescue.sh +++ b/bash/ovh-rescue.sh @@ -61,17 +61,18 @@ fr_FR.UTF-8 UTF-8 } ovh_rescue_install() { + local package local release="bookworm" # update catalog apt-get update - # + # disable frontend debian_disable_frontend # upgrade packages apt-get upgrade --assume-yes - # + # clean cache apt_clean_cache # install packages - apt-get install --assume-yes \ + set \ "file" "htop" "iotop" "lsof" "rsync" \ \ "parted" "mdadm" "cryptsetup-bin" "lvm2" \ @@ -80,16 +81,24 @@ ovh_rescue_install() { "exa" "ncdu" "nnn" "ranger" "tree" \ "squashfs-tools" \ "git" - # clean cache - apt_clean_cache + for package in "${@}"; do + echo ; echo "${package}" + apt-get install --assume-yes \ + "${package}" + apt_clean_cache + done # install backports - apt-get install --assume-yes \ - --target-release "${release}-backports" \ + set \ "grub-pc-bin" \ \ "grub-efi-amd64-bin" - # clean cache - apt_clean_cache + for package in "${@}"; do + echo ; echo "${package}" + apt-get install --assume-yes \ + --target-release "${release}-backports" \ + "${package}" + apt_clean_cache + done } ovh_rescue_upload() {