mirror of
https://codeberg.org/Computertruhe/Setup-Skripte.git
synced 2025-06-28 11:26:18 +02:00
Rename more_packages to packages.
Move some language packages to packages list. Revert apt-get to apt. Add info about install order
This commit is contained in:
parent
317f744d28
commit
0ed806753b
1 changed files with 15 additions and 9 deletions
|
@ -12,7 +12,7 @@ color_prefix=32 # green
|
|||
script_distro='Linux Mint 19.x'
|
||||
|
||||
# Additional packages
|
||||
more_packages=(
|
||||
packages=(
|
||||
# Graphics
|
||||
cheese
|
||||
inkscape
|
||||
|
@ -71,6 +71,14 @@ more_packages=(
|
|||
ubuntu-edu-primary
|
||||
ubuntu-edu-secondary
|
||||
ubuntu-edu-tertiary
|
||||
|
||||
# Language support
|
||||
language-selector-common
|
||||
openoffice.org-hyphenation
|
||||
language-pack-ar
|
||||
language-pack-gnome-ar
|
||||
language-pack-fa
|
||||
language-pack-gnome-fa
|
||||
)
|
||||
|
||||
###
|
||||
|
@ -94,7 +102,7 @@ handle_signal() {
|
|||
trap handle_signal SIGINT SIGTERM
|
||||
|
||||
pkg() {
|
||||
apt-get install "$@" --quiet --yes
|
||||
apt install "$@" --quiet --yes
|
||||
}
|
||||
|
||||
###
|
||||
|
@ -127,21 +135,19 @@ if is_root; then
|
|||
ubuntu-drivers autoinstall
|
||||
|
||||
e "Zusätzliche Software installieren ..."
|
||||
pkg "${more_packages[@]}"
|
||||
|
||||
e "Sprachpakete 'ar' und 'fa' installieren ..."
|
||||
pkg language-pack-ar language-pack-gnome-ar language-pack-fa language-pack-gnome-fa
|
||||
pkg "${packages[@]}"
|
||||
|
||||
e "Sprachunterstützung vervollständigen ..."
|
||||
pkg language-selector-common "$(check-language-support)"
|
||||
pkg hunspell-de-at hunspell-de-ch hunspell-de-de openoffice.org-hyphenation
|
||||
pkg "$(check-language-support)"
|
||||
# these packages have to be installed after "$(check-language-support)"
|
||||
pkg hunspell-de-at hunspell-de-ch hunspell-de-de
|
||||
|
||||
e "Unnötige Pakete entfernen und Cache bereinigen ..."
|
||||
apt clean --yes --quiet
|
||||
apt autoremove --yes --quiet
|
||||
|
||||
e "Root Setup abgeschlossen."
|
||||
# It's very important to exit here. We don't want to have run as root past this point
|
||||
# It's very important to exit here. We don't want root past this point!
|
||||
exit
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue