mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-11-04 04:49:29 +00:00 
			
		
		
		
	Update update-lxcs.sh
This commit is contained in:
		
							parent
							
								
									d54683396e
								
							
						
					
					
						commit
						b7e073b1c8
					
				@ -40,7 +40,7 @@ function update_container() {
 | 
			
		||||
  os=`awk '/^ostype/' temp | cut -d' ' -f2`
 | 
			
		||||
  if [ "$os" == "alpine" ]; then
 | 
			
		||||
        pct exec $container -- ash -c "apk update && apk upgrade"
 | 
			
		||||
  elif [ "$os" == "ubuntu" ] || [ "$PCT_OSTYPE" == "debian" ] || [ "$os" == "devuan" ]; then
 | 
			
		||||
  elif [ "$os" == "ubuntu" ] || [ "$os" == "debian" ] || [ "$os" == "devuan" ]; then
 | 
			
		||||
        pct exec $container -- bash -c "apt-get update && apt-get -y upgrade"
 | 
			
		||||
  elif [ "$os" == "fedora" ] || [ "$os" == "rocky" ] || [ "$os" == "centos" ] || [ "$os" == "alma" ]; then
 | 
			
		||||
        pct exec $container -- bash -c "dnf -y update && dnf -y upgrade"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user