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 }