Update update-lxcs.sh

This commit is contained in:
tteckster 2022-03-02 15:34:15 -05:00 committed by GitHub
parent 57517ed480
commit c739d3f564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -33,7 +33,6 @@ containers=$(pct list | tail -n +2 | cut -f1 -d' ')
function update_container() { function update_container() {
container=$1 container=$1
echo -e "${BL}[Info]${GN} Updating${BL} $container ${CL} \n" 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" pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
} }