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
This commit is contained in:
parent
b5dcc737c9
commit
05987137cb
2 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,12 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
||||||
logg info 'Running `sudo apt-get update`'
|
logg info 'Running `sudo apt-get update`'
|
||||||
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
|
### 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"'`'
|
||||||
|
|
|
@ -17,6 +17,12 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}'
|
||||||
logg info 'Running `sudo apt-get update`'
|
logg info 'Running `sudo apt-get update`'
|
||||||
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
|
### 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