Created by
GEORGE LIU
| #!/bin/bash
CENTOSSIXAXIVOFILE="axivo-release-6-1.noarch.rpm"
CENTOSSIXAXIVO="http://rpm.axivo.com/${CENTOSSIXAXIVOFILE}"
cd /svr-setup
wget -cnv ${CENTOSSIXAXIVO} --tries=3
rpm -ivh --nosignature ${CENTOSSIXAXIVOFILE}
cp -p /etc/yum.repos.d/axivo.repo /etc/yum.repos.d/axivo.OLD
if [ -n "$(grep ^priority /etc/yum.repos.d/axivo.repo)" ]
then
#echo priorities already set for axivo.repo
PRIOREXISTS=1
else
echo setting yum priorities for axivo.repo
ex -s /etc/yum.repos.d/axivo.repo << EOF
:/\[axivo\]/ , /gpgkey/
:a
priority=13
exclude=nginx* php* mariadb* memcached* xtrabackup
.
:w
:q
EOF
|