Up.
This commit is contained in:
parent
6b0a801bf9
commit
bb07a38006
@ -62,6 +62,26 @@ packages=(
|
|||||||
{{- /* we're on Debian based system */ -}}
|
{{- /* we're on Debian based system */ -}}
|
||||||
echo -e "\033[0;32m>>>>> Begin Debian/Ubuntu Linux packages installation <<<<<\033[0m"
|
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"
|
echo -e "\033[0;32m>>>>> Finish Debian/Ubuntu Linux packages installation <<<<<\033[0m"
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user