Skip to content

Commit

Permalink
add centos-release-cr yum repo for centos 6 on 123.09beta01
Browse files Browse the repository at this point in the history
centos 7 by default already installs CentOS Continous Release yum repo https://wiki.centos.org/AdditionalResources/Repositories/CR however, centos 6 doesn't by default. So add that to install routines with yum priority set and disabled out of box so that can be enabled on yum command line via --enablerepo=cr.

to view available CR yum packages which will only exist around the time of centos OS version pending release i.e. centos 6.7 with 6.8 coming soon type:
[CODEB]
yum list available --disableplugin=priorities --disablerepo=* --enablerepo=cr
[/CODEB]
  • Loading branch information
centminmod committed May 14, 2016
1 parent 9220bbb commit e1d7876
Show file tree
Hide file tree
Showing 15 changed files with 79 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/yuminstall.inc
Expand Up @@ -35,6 +35,13 @@ echo "........."
if [[ "$CENTOSVER" = '6.0' || "$CENTOSVER" = '6.1' || "$CENTOSVER" = '6.2' || "$CENTOSVER" = '6.3' || "$CENTOSVER" = '6.4' || "$CENTOSVER" = '6.5' || "$CENTOSVER" = '6.6' || "$CENTOSVER" = '6.7' || "$CENTOSVER" = '6.8' || "$CENTOSVER" = '6.9' || "$CENTOSVER" = '7.0' || "$CENTOSVER" = '7.1' || "$CENTOSVER" = '7.2' || "$CENTOSVER" = '7.3' || "$CENTOSVER" = '7.4' || "$CENTOSVER" = '7.5' || "$CENTOSVER" = '7.6' || "$CENTOSVER" = '7.7' ]]; then
yum -y -q install yum-plugin-priorities yum-plugin-fastestmirror yum-plugin-downloadonly epel-release
sed -i 's/metadata_expire=1h/metadata_expire=4h/g' /etc/yum.conf
# centos 6 unlike centos 7 doesn't install CR yum repo by default
# https://wiki.centos.org/AdditionalResources/Repositories/CR
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y -q install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
yumprior
else
yum -y -q install yum-priorities yum-fastestmirror yum-downloadonly epel-release
Expand Down
7 changes: 7 additions & 0 deletions installer-gitlab.sh
Expand Up @@ -239,6 +239,13 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
# centos 6 unlike centos 7 doesn't install CR yum repo by default
# https://wiki.centos.org/AdditionalResources/Repositories/CR
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer-latest-gitlab.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer-latest.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer-minimal-gitlab.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer-minimal.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer-ngxpagespeed-gitlab.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer-ngxpagespeed.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer55-gitlab.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer55.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer56-gitlab.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer56.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer7-gitlab.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down
5 changes: 5 additions & 0 deletions installer7.sh
Expand Up @@ -239,6 +239,11 @@ if [[ ! -f /usr/bin/git || ! -f /usr/bin/bc || ! -f /usr/bin/wget || ! -f /bin/n
else
yum -y install GeoIP GeoIP-devel
fi
if [[ "$CENTOS_SIX" = '6' ]]; then
yum -y install centos-release-cr
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-CR.repo
# echo "priority=1" >> /etc/yum.repos.d/CentOS-CR.repo
fi
touch ${INSTALLDIR}/curlinstall_yum.txt
firstyuminstallendtime=$(date +%s.%N)
fi
Expand Down

0 comments on commit e1d7876

Please sign in to comment.