1
0
This commit is contained in:
Jeff Lance 2024-02-27 16:39:55 +01:00
parent 20c6e3cd9d
commit 23b80e7522
2 changed files with 21 additions and 18 deletions

View File

@ -60,25 +60,27 @@ packages=(
echo -e "\033[0;32m>>>>> Begin Debian/Ubuntu Linux packages installation <<<<<\033[0m"
export DEBIAN_FRONTEND=noninteractive
## Add repositories and update system
{{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing lsb-release gpg
sudo -E apt-get install --yes --no-install-recommends --ignore-missing lsb-release gpg
curl -fsSL 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list
curl -fsSL 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
DEBIAN_FRONTEND=noninteractive sudo -E apt update
DEBIAN_FRONTEND=noninteractive sudo -E apt upgrade --yes
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing mist
sudo -E apt update
sudo -E apt upgrade --yes
sudo -E apt-get install --yes --no-install-recommends --ignore-missing mist
{{- else }}
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing lsb-release gpg
apt-get install --yes --no-install-recommends --ignore-missing lsb-release gpg
curl -fsSL 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | tee /etc/apt/sources.list.d/makedeb.list
curl -fsSL 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | tee /etc/apt/sources.list.d/prebuilt-mpr.list
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt upgrade --yes
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing mist
apt update
apt upgrade --yes
apt-get install --yes --no-install-recommends --ignore-missing mist
{{- end}}
mist update
@ -101,9 +103,9 @@ packages=(
echo "installing ${package}..."
{{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
{{- else }}
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing $package
apt-get install --yes --no-install-recommends --ignore-missing $package
{{- end }}
done

View File

@ -37,31 +37,32 @@ echo -e "\033[0;32m>>>>> Begin LVim installation <<<<<\033[0m"
{{ else if (eq .chezmoi.osRelease.id "debian" "ubuntu") -}}
export DEBIAN_FRONTEND=noninteractive
## Update system
{{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt update
DEBIAN_FRONTEND=noninteractive sudo -E apt upgrade --yes
sudo -E apt update
sudo -E apt upgrade --yes
{{- else }}
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt upgrade --yes
apt update
apt upgrade --yes
{{- end}}
## Install packages
packages=(${packages[@]//neovim/})
packages=(${packages[@]//cargo/})
packages=(${packages[@]//python/python3})
for package in ${packages[@]}; do
echo "installing ${package}..."
{{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
{{- else }}
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends --ignore-missing $package
apt-get install --yes --no-install-recommends --ignore-missing $package
{{- end }}
done
mist install cargo neovim
mist install neovim
{{- end }}