arrays
This commit is contained in:
parent
6f17ecfec3
commit
0ffbf27412
1 changed files with 18 additions and 25 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue