소스 검색

Update update-lxcs.sh

tteckster 3 년 전
부모
커밋
f0d6cc57f4
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      misc/update-lxcs.sh

+ 3 - 2
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"