mirror of https://github.com/Aidaho12/haproxy-wi
parent
bd8d851c36
commit
5814a06520
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue