mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-25 17:55:01 +01:00
Update update-lxcs.sh
This commit is contained in:
parent
57517ed480
commit
c739d3f564
@ -33,7 +33,6 @@ containers=$(pct list | tail -n +2 | cut -f1 -d' ')
|
||||
function update_container() {
|
||||
container=$1
|
||||
echo -e "${BL}[Info]${GN} Updating${BL} $container ${CL} \n"
|
||||
# to chain commands within one exec we will need to wrap them in bash
|
||||
pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user