From 620d4754c0aae0be1bb6e8a799bcb500197c04dd Mon Sep 17 00:00:00 2001 From: Walter Date: Sun, 22 Nov 2015 23:15:01 -0500 Subject: [PATCH] install epel repo before IUS --- snipeit.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snipeit.sh b/snipeit.sh index 148343fb86..0eca87f447 100644 --- a/snipeit.sh +++ b/snipeit.sh @@ -251,7 +251,7 @@ case $distro in #Allow us to get the mysql engine echo "" - echo "## Add IUS and mariaDB repos."; + echo "## Add epel, IUS and mariaDB repos."; mariadbRepo=/etc/yum.repos.d/MariaDB.repo touch $mariadbRepo echo >> $mariadbRepo "[mariadb]" @@ -261,13 +261,13 @@ case $distro in echo >> $mariadbRepo "gpgcheck=1" echo >> $mariadbRepo "enable=1" - yum -y install wget > /dev/null + yum -y install wget epel-release > /dev/null wget -P $tmp/ https://centos6.iuscommunity.org/ius-release.rpm &> /dev/null rpm -Uvh $tmp/ius-release*.rpm > /dev/null #Install PHP and other needed stuff. echo "## Install PHP and other needed stuff"; - PACKAGES="epel-release httpd MariaDB-server git unzip php56u php56u-mysqlnd php56u-bcmath php56u-cli php56u-common php56u-embedded php56u-gd php56u-mbstring php56u-mcrypt php56u-ldap" + PACKAGES=" httpd MariaDB-server git unzip php56u php56u-mysqlnd php56u-bcmath php56u-cli php56u-common php56u-embedded php56u-gd php56u-mbstring php56u-mcrypt php56u-ldap" for p in $PACKAGES;do if isinstalled $p;then @@ -382,14 +382,14 @@ case $distro in #Allow us to get the mysql engine echo "" - echo "## Add IUS and mariaDB repos."; - yum -y install wget > /dev/null + echo "## Add epel, IUS and mariaDB repos."; + yum -y install wget epel-release > /dev/null wget -P $tmp/ https://centos7.iuscommunity.org/ius-release.rpm &> /dev/null rpm -Uvh $tmp/ius-release*.rpm > /dev/null #Install PHP and other needed stuff. echo "## Install PHP and other needed stuff"; - PACKAGES="epel-release httpd mariadb-server git unzip php56u php56u-mysqlnd php56u-bcmath php56u-cli php56u-common php56u-embedded php56u-gd php56u-mbstring php56u-mcrypt php56u-ldap" + PACKAGES="httpd mariadb-server git unzip php56u php56u-mysqlnd php56u-bcmath php56u-cli php56u-common php56u-embedded php56u-gd php56u-mbstring php56u-mcrypt php56u-ldap" for p in $PACKAGES;do if isinstalled $p;then