From f0d6cc57f449c1b3b846355380678bca1363b458 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 13 Mar 2022 18:45:42 -0400 Subject: [PATCH] Update update-lxcs.sh --- misc/update-lxcs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh index ad2ec632..b630d8bf 100644 --- a/misc/update-lxcs.sh +++ b/misc/update-lxcs.sh @@ -35,14 +35,15 @@ function update_container() { 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` if [ "$status" == "status: stopped" ]; then echo -e "${BL}[Info]${GN} Starting${BL} $container ${CL} \n" pct start $container - echo -e "${BL}[Info]${GN} Waiting For${BL} $container To Start ${CL} \n" + echo -e "${BL}[Info]${GN} Waiting For${BL} $container${CL}${GN} To Start ${CL} \n" sleep 5 update_container $container echo -e "${BL}[Info]${GN} Shutting down${BL} $container ${CL} \n"