auto dedect new es version

This commit is contained in:
simon 2022-04-15 17:46:16 +07:00
parent dc29c6718c
commit c5746089f5
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -103,8 +103,9 @@ function validate {
# update latest tag compatible es for set and forget
function sync_latest_es {
printf "\nsync new es version:\n"
read -r VERSION
VERSION=$(grep "bbilly1/tubearchivist-es" docker-compose.yml | awk '{print $NF}')
printf "\nsync new ES version %s\nContinue?\n" "$VERSION"
read -rn 1
if [[ $(systemctl is-active docker) != 'active' ]]; then
echo "starting docker"