Added noninteractive mode for sddm install
This commit is contained in:
parent
c99264b632
commit
999edd4e2e
1 changed files with 4 additions and 1 deletions
|
@ -15,11 +15,14 @@
|
||||||
{{- $additionalPackages := splitList " " (includeTemplate (joinPath .host.distro.id "common-dependencies") .) -}}
|
{{- $additionalPackages := splitList " " (includeTemplate (joinPath .host.distro.id "common-dependencies") .) -}}
|
||||||
{{- $packages = concat $packages $additionalPackages -}}
|
{{- $packages = concat $packages $additionalPackages -}}
|
||||||
|
|
||||||
|
# @description Ensure Ubuntu / Debian run in `noninteractive` mode
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
if [ '{{ .host.distro.id }}' = 'archlinux' ]; then
|
if [ '{{ .host.distro.id }}' = 'archlinux' ]; then
|
||||||
### Print dependency list
|
### Print dependency list
|
||||||
logg 'Installing common dependencies using `pacman`'
|
logg 'Installing common dependencies using `pacman`'
|
||||||
logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
||||||
|
|
||||||
### Install packages if they are not already present
|
### Install packages if they are not already present
|
||||||
for PACKAGE in {{ $packages | sortAlpha | uniq | join " " -}}; do
|
for PACKAGE in {{ $packages | sortAlpha | uniq | join " " -}}; do
|
||||||
logg info 'Checking for presence of `'"$PACKAGE"'`'
|
logg info 'Checking for presence of `'"$PACKAGE"'`'
|
||||||
|
|
Loading…
Reference in a new issue