From 05987137cbbeea1d1e873f6c7696359c4a57a729 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 25 Jan 2023 13:13:03 +0000 Subject: [PATCH] Update 2 files - /home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl - /home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl --- .../run_onchange_before_10-install-debian-dependencies.tmpl | 6 ++++++ .../run_onchange_before_10-install-ubuntu-dependencies.tmpl | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl b/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl index 0bc497fc..bf214c94 100644 --- a/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl +++ b/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl @@ -17,6 +17,12 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}' logg info 'Running `sudo apt-get update`' sudo apt-get update +### Update debconf for non-interactive installation +if command -v dpkg-reconfigure > /dev/null; then + logg info 'Running sudo dpkg-reconfigure debconf -f noninteractive -p critical' + sudo dpkg-reconfigure debconf -f noninteractive -p critical +fi + ### Install packages if they are not already present for PACKAGE in {{ $packages | sortAlpha | uniq | join " " -}}; do logg info 'Checking for presence of `'"$PACKAGE"'`' diff --git a/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl b/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl index d70b572f..e2cfab8e 100644 --- a/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl +++ b/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl @@ -17,6 +17,12 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}' logg info 'Running `sudo apt-get update`' sudo apt-get update +### Update debconf for non-interactive installation +if command -v dpkg-reconfigure > /dev/null; then + logg info 'Running sudo dpkg-reconfigure debconf -f noninteractive -p critical' + sudo dpkg-reconfigure debconf -f noninteractive -p critical +fi + ### Install packages if they are not already present for PACKAGE in {{ $packages | sortAlpha | uniq | join " " -}}; do logg info 'Checking for presence of `'"$PACKAGE"'`'