Update update-lxcs.sh

This commit is contained in:
tteckster 2022-03-13 18:49:00 -04:00 committed by GitHub
parent f0d6cc57f4
commit eceb1a6b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,11 +32,11 @@ containers=$(pct list | tail -n +2 | cut -f1 -d' ')
function update_container() {
container=$1
clear
header_info
echo -e "${BL}[Info]${GN} Updating${BL} $container ${CL} \n"
pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
}
clear
header_info
for container in $containers
do
status=`pct status $container`