From 81eb6b8154d1cdd100bd898275aa231487ca172a Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Sun, 9 Apr 2023 09:47:32 +0800 Subject: [PATCH] Update containers_version.sh --- scripts/containers_version.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/containers_version.sh b/scripts/containers_version.sh index aee3df97..4fbd03cf 100644 --- a/scripts/containers_version.sh +++ b/scripts/containers_version.sh @@ -26,6 +26,7 @@ for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do echo "$containername容器名匹配成功app:$appname" targetlist="$targetlist $appname" wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-library/main/apps/$appname/src/get_version.sh + chmod +x /tmp/"$appname"_get_version.sh bash /tmp/"$appname"_get_version.sh $containername break fi @@ -48,6 +49,7 @@ for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do echo "$imagename=镜像名匹配成功app:$appname, and容器名是:$containername" targetlist="$targetlist $appname" wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-library/main/apps/$appname/src/get_version.sh + chmod +x /tmp/"$appname"_get_version.sh bash /tmp/"$appname"_get_version.sh $containername break fi @@ -59,6 +61,7 @@ for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do echo "$service服务名匹配成功app:$appname, and容器名是:$containername" targetlist="$targetlist $appname" wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-library/main/apps/$appname/src/get_version.sh + chmod +x /tmp/"$appname"_get_version.sh bash /tmp/"$appname"_get_version.sh $containername break fi