mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-23 08:00:23 +00:00
2.0.6
This commit is contained in:
parent
611142260a
commit
752472a1d6
2 changed files with 19 additions and 3 deletions
|
@ -23,8 +23,24 @@ check_ports() {
|
|||
function get_volume_path() {
|
||||
local container_name="$1"
|
||||
local volume_name="$2"
|
||||
local mounts=$(docker inspect -f '{{ json .Mounts }}' "$container_name" | jq -r '.[] | select(.Name == "'$volume_name'") | .Source')
|
||||
echo "$mounts"
|
||||
local retries=0
|
||||
local max_retries=5
|
||||
local mounts
|
||||
|
||||
while [ $retries -lt $max_retries ]; do
|
||||
mounts=$(docker inspect -f '{{ json .Mounts }}' "$container_name" | jq -r ".[] | select(.Name == \"$volume_name\") | .Source")
|
||||
|
||||
if [[ "$mounts" == *"/"* ]]; then
|
||||
echo "$mounts"
|
||||
return 0
|
||||
fi
|
||||
|
||||
((retries++))
|
||||
sleep 5
|
||||
done
|
||||
|
||||
echo "Cannot get volume path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
volume_path=$(get_volume_path "$container_name" "$volume_name")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"plugins": {
|
||||
"portainer": "0.0.9",
|
||||
"nginx": "0.0.7",
|
||||
|
|
Loading…
Reference in a new issue