Snippets

GEORGE LIU axivo_centmin.sh for centmin mod .07 stable users who forgot to enable Axivo repo before initial install

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

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.