mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	Delete unused function apt_add_repository_to_unattended_upgrades (#1721)
The function apt_add_repository_to_unattended_upgrades is defined
but never called anywhere. It appears that automatic apt updates
are handled in system.sh where the file /etc/apt/apt.conf.d/02periodic
is created. The last call was removed in bbfa01f33a.
Co-authored-by: ddavis32 <dan@nthdegreesoftware.com>
			
			
This commit is contained in:
		
							parent
							
								
									5e47677f7a
								
							
						
					
					
						commit
						e224fc6656
					
				@ -57,15 +57,6 @@ function apt_install {
 | 
			
		||||
	apt_get_quiet install $PACKAGES
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function apt_add_repository_to_unattended_upgrades {
 | 
			
		||||
	if [ -f /etc/apt/apt.conf.d/50unattended-upgrades ]; then
 | 
			
		||||
		if ! grep -q "$1" /etc/apt/apt.conf.d/50unattended-upgrades; then
 | 
			
		||||
			sed -i "/Allowed-Origins/a \
 | 
			
		||||
	    \"$1\";" /etc/apt/apt.conf.d/50unattended-upgrades
 | 
			
		||||
		fi
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function get_default_hostname {
 | 
			
		||||
	# Guess the machine's hostname. It should be a fully qualified
 | 
			
		||||
	# domain name suitable for DNS. None of these calls may provide
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user