1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

handle multiple versions update on host install

This commit is contained in:
Sylvain 2018-03-29 13:03:35 +02:00
parent db9912defb
commit 128f15d90e

View File

@ -205,6 +205,12 @@ upgrade_classic()
"2.4") "2.4")
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee /etc/apt/sources.list.d/elasticsearch-2.x.list echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee /etc/apt/sources.list.d/elasticsearch-2.x.list
;; ;;
"5.6")
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-5.x.list
;;
"6.2")
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-6.x.list
;;
esac esac
sudo apt-get update && sudo apt-get install --only-upgrade elasticsearch sudo apt-get update && sudo apt-get install --only-upgrade elasticsearch
else else
@ -219,6 +225,12 @@ upgrade_classic()
"2.4") "2.4")
brew install homebrew/versions/elasticsearch24 brew install homebrew/versions/elasticsearch24
;; ;;
"5.6")
brew install homebrew/versions/elasticsearch56
;;
"6.2")
brew install homebrew/versions/elasticsearch62
;;
esac esac
;; ;;
*) *)