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 {
|
function hetzner-rescue-configure {
|
||||||
local host="${1}"
|
local host="${1}"
|
||||||
|
local package
|
||||||
local packages=(
|
local packages=(
|
||||||
'byobu' 'mosh'
|
'byobu' 'mosh'
|
||||||
)
|
)
|
||||||
|
@ -38,12 +39,16 @@ fr_FR.UTF-8 UTF-8
|
||||||
#
|
#
|
||||||
debian_disable_frontend
|
debian_disable_frontend
|
||||||
# install packages
|
# install packages
|
||||||
apt-get install --assume-yes "${packages[@]}"
|
for package in "${packages[@]}" ; do
|
||||||
#
|
apt-get install \
|
||||||
|
--assume-yes \
|
||||||
|
"${package}"
|
||||||
apt_clean_cache
|
apt_clean_cache
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function hetzner-rescue-install {
|
function hetzner-rescue-install {
|
||||||
|
local package
|
||||||
local release='bookworm'
|
local release='bookworm'
|
||||||
local packages=(
|
local packages=(
|
||||||
# installed
|
# installed
|
||||||
|
@ -71,14 +76,20 @@ function hetzner-rescue-install {
|
||||||
#
|
#
|
||||||
apt_clean_cache
|
apt_clean_cache
|
||||||
# install packages
|
# install packages
|
||||||
apt-get install --assume-yes "${packages[@]}"
|
for package in "${packages[@]}" ; do
|
||||||
#
|
apt-get install \
|
||||||
|
--assume-yes \
|
||||||
|
"${package}"
|
||||||
apt_clean_cache
|
apt_clean_cache
|
||||||
|
done
|
||||||
# install backports
|
# install backports
|
||||||
apt-get install --assume-yes \
|
for package in "${backports[@]}" ; do
|
||||||
--target-release "${release}-backports" "${backports[@]}"
|
apt-get install \
|
||||||
#
|
--assume-yes \
|
||||||
|
--target-release "${release}-backports" \
|
||||||
|
"${package}"
|
||||||
apt_clean_cache
|
apt_clean_cache
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function hetzner-rescue-upload {
|
function hetzner-rescue-upload {
|
||||||
|
|
Loading…
Reference in a new issue