configure
This commit is contained in:
parent
d468491ae0
commit
d2ce7a1b74
1 changed files with 22 additions and 13 deletions
|
@ -1,8 +1,9 @@
|
||||||
#! /usr/bin/env sh
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
ovh_rescue_configure() {
|
ovh_rescue_configure() {
|
||||||
local host="${1}"
|
local hostname="${1}"
|
||||||
local release="bookworm"
|
local release="bookworm"
|
||||||
|
local package
|
||||||
# apt / conf
|
# apt / conf
|
||||||
printf "\
|
printf "\
|
||||||
Acquire::AllowInsecureRepositories False;
|
Acquire::AllowInsecureRepositories False;
|
||||||
|
@ -24,8 +25,9 @@ deb https://deb.debian.org/debian-security ${release}-security main non-free-fir
|
||||||
" >"/etc/apt/sources.list"
|
" >"/etc/apt/sources.list"
|
||||||
# bash / rc
|
# bash / rc
|
||||||
main_link_bashrc
|
main_link_bashrc
|
||||||
|
mv .bashrc .bashrc.old
|
||||||
# host name
|
# host name
|
||||||
hostname "${host}"
|
hostname "${hostname}"
|
||||||
# locales
|
# locales
|
||||||
printf "\
|
printf "\
|
||||||
en_US.UTF-8 UTF-8
|
en_US.UTF-8 UTF-8
|
||||||
|
@ -35,20 +37,27 @@ fr_FR.UTF-8 UTF-8
|
||||||
locale-gen
|
locale-gen
|
||||||
# update catalog
|
# update catalog
|
||||||
apt-get update
|
apt-get update
|
||||||
#
|
# disable frontend
|
||||||
debian_disable_frontend
|
debian_disable_frontend
|
||||||
# install backports
|
# install backports
|
||||||
apt-get install --assume-yes \
|
set "tmux"
|
||||||
--target-release "${release}-backports" \
|
for package in "${@}"; do
|
||||||
"tmux"
|
echo ; echo "${package}"
|
||||||
# clean cache
|
apt-get install --assume-yes \
|
||||||
apt_clean_cache
|
--target-release "${release}-backports" \
|
||||||
|
"${package}"
|
||||||
|
apt_clean_cache
|
||||||
|
done
|
||||||
# install packages
|
# install packages
|
||||||
apt-get install --assume-yes \
|
set "apt-file" "mosh" "byobu"
|
||||||
"byobu" \
|
for package in "${@}"; do
|
||||||
"mosh"
|
echo ; echo "${package}"
|
||||||
# clean cache
|
apt-get install --assume-yes \
|
||||||
apt_clean_cache
|
"${package}"
|
||||||
|
apt_clean_cache
|
||||||
|
done
|
||||||
|
# update catalog
|
||||||
|
apt-get update
|
||||||
}
|
}
|
||||||
|
|
||||||
ovh_rescue_install() {
|
ovh_rescue_install() {
|
||||||
|
|
Loading…
Reference in a new issue