mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
dpkg config
This commit is contained in:
19
images/linux/scripts/installers/dpkg-config.sh
Normal file
19
images/linux/scripts/installers/dpkg-config.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This is the anti-frontend. It never interacts with you at all,
|
||||
# and makes the default answers be used for all questions. It
|
||||
# might mail error messages to root, but that's it; otherwise it
|
||||
# is completely silent and unobtrusive, a perfect frontend for
|
||||
# automatic installs. If you are using this front-end, and require
|
||||
# non-default answers to questions, you will need to preseed the
|
||||
# debconf database
|
||||
echo 'DEBIAN_FRONTEND=noninteractive' | tee -a /etc/environment
|
||||
|
||||
# dpkg can be instructed not to ask for confirmation
|
||||
# when replacing a configuration file (with the --force-confdef --force-confold options)
|
||||
cat <<EOF >> /etc/apt/apt.conf.d/10dpkg-options
|
||||
Dpkg::Options {
|
||||
"--force-confdef";
|
||||
"--force-confold";
|
||||
}
|
||||
EOF
|
||||
Reference in New Issue
Block a user