package
This commit is contained in:
parent
e692555334
commit
e458a78afe
1 changed files with 21 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue