Fixing Debian/Ubuntu updates to be completely non-interactive
This commit is contained in:
		
							parent
							
								
									b305e622b5
								
							
						
					
					
						commit
						67f7507d7c
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		
							
								
								
									
										10
									
								
								avr_setup.sh
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								avr_setup.sh
									
										
									
									
									
								
							| 
						 | 
					@ -20,7 +20,15 @@ if [[ -n "$(type -P pacman )" ]]; then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
elif [[ -n "$(type -P apt-get)" ]]; then
 | 
					elif [[ -n "$(type -P apt-get)" ]]; then
 | 
				
			||||||
  # Debian and derivatives
 | 
					  # 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 \
 | 
					  apt-get install -y \
 | 
				
			||||||
    build-essential \
 | 
					    build-essential \
 | 
				
			||||||
    gcc \
 | 
					    gcc \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue