1
0
This commit is contained in:
Jeff Lance 2024-02-26 20:23:16 +01:00
parent 6b0a801bf9
commit bb07a38006

View File

@ -62,6 +62,26 @@ packages=(
{{- /* we're on Debian based system */ -}}
echo -e "\033[0;32m>>>>> Begin Debian/Ubuntu Linux packages installation <<<<<\033[0m"
## Update system
{{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt update
DEBIAN_FRONTEND=noninteractive sudo -E apt upgrade --yes
{{- else }}
DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt upgrade --yes
{{- end}}
## Install packages
for package in ${packages[@]}; do
echo "installing packages"
{{- if ne .chezmoi.username "root" }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
{{- else }}
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install --yes --no-install-recommends --ignore-missing $package
{{- end }}
done
echo -e "\033[0;32m>>>>> Finish Debian/Ubuntu Linux packages installation <<<<<\033[0m"
{{- end }}