From 0ffbf27412914ba9904225063c76a735aa7f10d0 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 12:29:48 +0100 Subject: [PATCH] arrays --- bash/ovh-rescue.sh | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/bash/ovh-rescue.sh b/bash/ovh-rescue.sh index e63c7b2..b8af8c3 100644 --- a/bash/ovh-rescue.sh +++ b/bash/ovh-rescue.sh @@ -1,10 +1,7 @@ #! /usr/bin/env sh ovh_rescue_configure() { -local host="${1}" - local packages=( - "byobu" "mosh" - ) + local host="${1}" # apt / conf printf "\ Acquire::AllowInsecureRepositories False; @@ -43,31 +40,15 @@ fr_FR.UTF-8 UTF-8 # debian_disable_frontend # install packages - apt-get install --assume-yes "${packages[@]}" + apt-get install --assume-yes \ + "byobu" \ + "mosh" # apt_clean_cache } ovh_rescue_install() { local release="buster" - local packages=( - # installed - "parted" "mdadm" "lvm2" - # install - "lshw" - "file" "micro" - "grub-efi-amd64-bin" "grub-pc-bin" - "htop" "iotop" "lsof" - "exa" "ncdu" "nnn" "ranger" "tree" - "squashfs-tools" - "uuid-runtime" - ) - local backports=( - # installed - "cryptsetup-bin" "rsync" - # install - "git" - ) # update catalog apt-get update # @@ -77,12 +58,24 @@ ovh_rescue_install() { # apt_clean_cache # install packages - apt-get install --assume-yes "${packages[@]}" + apt-get install --assume-yes \ + "parted" "mdadm" "lvm2" \ +\ + "lshw" \ + "file" "micro" \ + "grub-efi-amd64-bin" "grub-pc-bin" \ + "htop" "iotop" "lsof" \ + "exa" "ncdu" "nnn" "ranger" "tree" \ + "squashfs-tools" \ + "uuid-runtime" # apt_clean_cache # install backports apt-get install --assume-yes \ - --target-release "${release}-backports" "${backports[@]}" + --target-release "${release}-backports" \ + "cryptsetup-bin" "rsync" \ +\ + "git" # apt_clean_cache }