mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Update update-lxcs.sh
This commit is contained in:
		
							parent
							
								
									f0d6cc57f4
								
							
						
					
					
						commit
						eceb1a6b55
					
				| 
						 | 
					@ -32,11 +32,11 @@ containers=$(pct list | tail -n +2 | cut -f1 -d' ')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function update_container() {
 | 
					function update_container() {
 | 
				
			||||||
  container=$1
 | 
					  container=$1
 | 
				
			||||||
 | 
					  clear
 | 
				
			||||||
 | 
					  header_info
 | 
				
			||||||
  echo -e "${BL}[Info]${GN} Updating${BL} $container ${CL} \n"
 | 
					  echo -e "${BL}[Info]${GN} Updating${BL} $container ${CL} \n"
 | 
				
			||||||
  pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
 | 
					  pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
clear
 | 
					 | 
				
			||||||
header_info
 | 
					 | 
				
			||||||
for container in $containers
 | 
					for container in $containers
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
  status=`pct status $container`
 | 
					  status=`pct status $container`
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue