mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 09:20:20 +08:00
Update containers_version.sh
This commit is contained in:
parent
faa6b647f6
commit
394dd6c7dd
@ -25,7 +25,7 @@ for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do
|
|||||||
fi
|
fi
|
||||||
echo "$containername容器名匹配成功app:$appname"
|
echo "$containername容器名匹配成功app:$appname"
|
||||||
targetlist="$targetlist $appname"
|
targetlist="$targetlist $appname"
|
||||||
wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-$appname/main/src/get_version.sh
|
wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-library/main/apps/$appname/src/get_version.sh
|
||||||
bash /tmp/"$appname"_get_version.sh $containername
|
bash /tmp/"$appname"_get_version.sh $containername
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -47,7 +47,7 @@ for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do
|
|||||||
if [[ $containername =~ $tmpvar ]];then
|
if [[ $containername =~ $tmpvar ]];then
|
||||||
echo "$imagename=镜像名匹配成功app:$appname, and容器名是:$containername"
|
echo "$imagename=镜像名匹配成功app:$appname, and容器名是:$containername"
|
||||||
targetlist="$targetlist $appname"
|
targetlist="$targetlist $appname"
|
||||||
wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-$appname/main/src/get_version.sh
|
wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-library/main/apps/$appname/src/get_version.sh
|
||||||
bash /tmp/"$appname"_get_version.sh $containername
|
bash /tmp/"$appname"_get_version.sh $containername
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -58,7 +58,7 @@ for appinfo in $(docker ps --format '{{.Names}}%{{.Image}}'); do
|
|||||||
if [[ $service == $appname ]];then
|
if [[ $service == $appname ]];then
|
||||||
echo "$service服务名匹配成功app:$appname, and容器名是:$containername"
|
echo "$service服务名匹配成功app:$appname, and容器名是:$containername"
|
||||||
targetlist="$targetlist $appname"
|
targetlist="$targetlist $appname"
|
||||||
wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-$appname/main/src/get_version.sh
|
wget -O /tmp/"$appname"_get_version.sh https://raw.githubusercontent.com/Websoft9/docker-library/main/apps/$appname/src/get_version.sh
|
||||||
bash /tmp/"$appname"_get_version.sh $containername
|
bash /tmp/"$appname"_get_version.sh $containername
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user