This commit is contained in:
Marc Beninca 2023-10-02 19:32:50 +02:00
parent e692555334
commit e458a78afe

View file

@ -1,5 +1,6 @@
function hetzner-rescue-configure {
local host="${1}"
local package
local packages=(
'byobu' 'mosh'
)
@ -38,12 +39,16 @@ fr_FR.UTF-8 UTF-8
#
debian_disable_frontend
# install packages
apt-get install --assume-yes "${packages[@]}"
#
apt_clean_cache
for package in "${packages[@]}" ; do
apt-get install \
--assume-yes \
"${package}"
apt_clean_cache
done
}
function hetzner-rescue-install {
local package
local release='bookworm'
local packages=(
# installed
@ -71,14 +76,20 @@ function hetzner-rescue-install {
#
apt_clean_cache
# install packages
apt-get install --assume-yes "${packages[@]}"
#
apt_clean_cache
for package in "${packages[@]}" ; do
apt-get install \
--assume-yes \
"${package}"
apt_clean_cache
done
# install backports
apt-get install --assume-yes \
--target-release "${release}-backports" "${backports[@]}"
#
apt_clean_cache
for package in "${backports[@]}" ; do
apt-get install \
--assume-yes \
--target-release "${release}-backports" \
"${package}"
apt_clean_cache
done
}
function hetzner-rescue-upload {