diff --git a/scripts/elastic-upgrade.sh b/scripts/elastic-upgrade.sh old mode 100644 new mode 100755 index d59e7ab58..5d2dc8822 --- a/scripts/elastic-upgrade.sh +++ b/scripts/elastic-upgrade.sh @@ -149,6 +149,7 @@ upgrade_docker() # get container network name local network=$(docker inspect -f '{{.NetworkSettings.Networks}}' "$id" | sed 's/map\[\(.*\):0x[a-f0-9]*\]/\1/') # get container mapping to data folder + # TODO FIXME if only one volume local mounts=$(docker inspect -f '{{.Mounts}}' "$id" | sed 's/} {/\n/g' | sed 's/^\[\?{\?bind[[:blank:]]*\([^[:blank:]]*\)[[:blank:]]*\([^[:blank:]]*\)[[:blank:]]*true rprivate}\?]\?$/-v \1:\2/g' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g') # stop elastic 1.7 docker stop "$name"