Skip to content

Commit

Permalink
workaround fix for non-english CentOS 7 system MariaDB installs
Browse files Browse the repository at this point in the history
- seems non-english CentOS 7 systems incorrect put some MariaDB packages in yum priority exclusion https://community.centminmod.com/threads/mariadb-conflict-in-123-09beta01.12361/#post-52392. This is a workaround fix for fresh installs
  • Loading branch information
centminmod committed Jul 25, 2017
1 parent 14edd6c commit bd7fc41
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions inc/mariadb_install.inc
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ echo ""
echo "MariaDB 10.1 YUM install..."

if [ -f /etc/yum.repos.d/rpmforge.repo ]; then
DISABLEOTHERREPO=' --disablerepo=epel --disablerepo=rpmforge'
DISABLEOTHERREPO=' --disablerepo=epel --disablerepo=rpmforge --disableplugin=priorities'
else
DISABLEOTHERREPO=' --disablerepo=epel'
DISABLEOTHERREPO=' --disablerepo=epel --disableplugin=priorities'
fi

# set /etc/my.cnf templates
Expand Down
8 changes: 4 additions & 4 deletions inc/mariadb_upgrade10.inc
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,18 @@ fi
echo ""
echo "*************************************************"
cecho "MariaDB 10.x check available packages" $boldgreen
cecho "yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared" $boldgreen
cecho "yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared
time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities

echo ""
echo "*************************************************"
cecho "MariaDB 10.x YUM install..." $boldgreen
cecho "yum -q -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared" $boldgreen
cecho "yum -q -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
time yum -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared
time yum -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities

cp -a /etc/my.cnf /etc/my.cnf-newold
echo ""
Expand Down
8 changes: 4 additions & 4 deletions inc/mariadb_upgrade101.inc
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ fi
echo ""
echo "*************************************************"
cecho "MariaDB 10.1.x check available packages" $boldgreen
cecho "yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel" $boldgreen
cecho "yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel
time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities

if [ -f "$(which figlet)" ]; then
figlet -ckf standard "MariaDB 10.1.x Install"
Expand All @@ -394,10 +394,10 @@ time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel Mari
echo ""
echo "*************************************************"
cecho "MariaDB 10.1.x YUM install..." $boldgreen
cecho "yum -q -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel" $boldgreen
cecho "yum -q -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
time yum -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel
time yum -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities

\cp -f /etc/my.cnf /etc/my.cnf-newold
echo ""
Expand Down
8 changes: 4 additions & 4 deletions inc/mariadb_upgrade102.inc
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,10 @@ fi
echo ""
echo "*************************************************"
cecho "MariaDB 10.2.x check available packages" $boldgreen
cecho "yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel" $boldgreen
cecho "yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel
time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities

if [ -f "$(which figlet)" ]; then
figlet -ckf standard "MariaDB 10.2.x Install"
Expand All @@ -423,10 +423,10 @@ time yum -q list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel Mari
echo ""
echo "*************************************************"
cecho "MariaDB 10.2.x YUM install..." $boldgreen
cecho "yum -q -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel" $boldgreen
cecho "yum -q -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
time yum -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel
time yum -y install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disablerepo=epel --disableplugin=priorities

\cp -f /etc/my.cnf /etc/my.cnf-newold
echo ""
Expand Down
8 changes: 4 additions & 4 deletions inc/mariadb_upgrade55.inc
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,18 @@ echo ""

echo "*************************************************"
cecho "* MariaDB 5.5 check available packages " $boldgreen
cecho " yum -q --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared" $boldgreen
cecho " yum -q --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
yum -q --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared
yum -q --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT list MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities
echo ""

echo "*************************************************"
cecho "* MariaDB 5.5 YUM install... " $boldgreen
cecho " yum -q -y --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared" $boldgreen
cecho " yum -q -y --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities" $boldgreen
echo "*************************************************"
echo ""
yum -q -y --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared
yum -q -y --disableplugin=fastestmirror,downloadonly --disablerepo=CentALT install MariaDB-client MariaDB-common MariaDB-compat MariaDB-devel MariaDB-server MariaDB-shared --disableplugin=priorities
echo ""


Expand Down

0 comments on commit bd7fc41

Please sign in to comment.