Add 1.9 support
pull/98/head
Pavel Loginov 2019-01-23 11:55:46 +06:00 committed by GitHub
parent bd8d851c36
commit 5814a06520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -34,15 +34,19 @@ set +x
if hash apt-get 2>/dev/null; then if hash apt-get 2>/dev/null; then
sudo apt-get install haproxy socat -y sudo apt-get install haproxy socat -y
else else
wget http://cbs.centos.org/kojifiles/packages/haproxy/1.8.1/5.el7/x86_64/haproxy18-1.8.1-5.el7.x86_64.rpm #wget http://cbs.centos.org/kojifiles/packages/haproxy/1.8.1/5.el7/x86_64/haproxy18-1.8.1-5.el7.x86_64.rpm
sudo yum install haproxy18-1.8.1-5.el7.x86_64.rpm -y wget http://au1.mirror.crc.id.au/repo/el7-extra/x86_64/haproxy-1.9.1-1.el7.x86_64.rpm
#sudo yum install haproxy18-1.8.1-5.el7.x86_64.rpm -y
sudo yum install haproxy-1.9.1-1.el7.x86_64.rpm -y
fi fi
if [ $? -eq 1 ] if [ $? -eq 1 ]
then then
sudo yum install wget socat -y > /dev/null sudo yum install wget socat -y > /dev/null
wget http://cbs.centos.org/kojifiles/packages/haproxy/1.8.1/5.el7/x86_64/haproxy18-1.8.1-5.el7.x86_64.rpm #wget http://cbs.centos.org/kojifiles/packages/haproxy/1.8.1/5.el7/x86_64/haproxy18-1.8.1-5.el7.x86_64.rpm
sudo yum install haproxy18-1.8.1-5.el7.x86_64.rpm -y wget http://au1.mirror.crc.id.au/repo/el7-extra/x86_64/haproxy-1.9.1-1.el7.x86_64.rpm
#sudo yum install haproxy18-1.8.1-5.el7.x86_64.rpm -y
sudo yum install haproxy-1.9.1-1.el7.x86_64.rpm -y
fi fi
if [ $? -eq 1 ] if [ $? -eq 1 ]
then then
@ -114,4 +118,4 @@ then
echo "error: Can't start Haproxy service <br /><br />" echo "error: Can't start Haproxy service <br /><br />"
exit 1 exit 1
fi fi
echo "success" echo "success"