diff options
author | dragon788 <github@deik.me> | 2016-01-17 13:12:37 -0600 |
---|---|---|
committer | dragon788 <github@deik.me> | 2016-01-17 13:20:28 -0600 |
commit | 67f7507d7c8e9db8f1bb135a272a03fd4619b288 (patch) | |
tree | d4365c034b41e885e52ebd9b55574d423966025b | |
parent | b305e622b5c1476142e9547e66705c74a26aabc0 (diff) |
Fixing Debian/Ubuntu updates to be completely non-interactive
-rw-r--r-- | avr_setup.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/avr_setup.sh b/avr_setup.sh index 4b25280852..34a8a3281b 100644 --- a/avr_setup.sh +++ b/avr_setup.sh @@ -20,7 +20,15 @@ if [[ -n "$(type -P pacman )" ]]; then elif [[ -n "$(type -P apt-get)" ]]; then # Debian and derivatives - apt-get update -y && apt-get upgrade -y + # This block performs completely non-interactive updates {{ + export DEBIAN_FRONTEND=noninteractive + export DEBCONF_NONINTERACTIVE_SEEN=true + echo "grub-pc hold" | dpkg --set-selections + apt-get -y update + apt-get -y --allow-unauthenticated upgrade \ + -o Dpkg::Options::="--force-confdef" \ + -o Dpkg::Options::="--force-confold" + # }} apt-get install -y \ build-essential \ gcc \ |