From d0090a8cd0bb00fe7860d6a622615689d111dd8e Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 31 Jul 2022 17:35:14 -0400 Subject: [PATCH] Update update-lxcs.sh --- misc/update-lxcs.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh index d179b866..369631f4 100644 --- a/misc/update-lxcs.sh +++ b/misc/update-lxcs.sh @@ -35,14 +35,7 @@ function update_container() { clear header_info echo -e "${BL}[Info]${GN} Updating${BL} $container ${CL} \n" - pct config $container > temp - os=`awk '/^ostype/' temp | cut -d' ' -f2` - if [ "$os" == "alpine" ] - then - pct exec $container -- ash -c "apk update && apk upgrade" - else - pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y" - fi + pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y" } read -p "Skip stopped containers? " -n 1 -r echo @@ -76,5 +69,4 @@ do fi done; wait -rm temp echo -e "${GN} Finished, All Containers Updated. ${CL} \n"