Explorar el Código

* Quitando repo de CentOS6 y Fedora 27

Guzmán Castanedo Villalba hace 6 años
padre
commit
a2c3b71989
Se han modificado 1 ficheros con 1 adiciones y 7 borrados
  1. 1 7
      install

+ 1 - 7
install

@@ -306,10 +306,10 @@ OSInfo() {
 		if [ -f /etc/os-release ]; then
 			DIST=$(grep ^NAME= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			REV=$(grep ^VERSION= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
+			ID=$(grep ^ID= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			ID_LIKE=$(grep ^ID_LIKE= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			VERSION=$(grep ^VERSION_ID= /etc/os-release | cut -d = -f 2 | cut -d '"' -f 2)
 			for i in $ID_LIKE; do
-				#echo -en "$i\n"
 				case $i in
 					debian|ubuntu)
 						debianOS=true
@@ -1176,15 +1176,9 @@ instalarPHP() {
 			if [ $VERSION = "7" ];then
 				result=$(yum -y install http://remi.mirrors.cu.be/enterprise/remi-release-7.rpm 2>&1)
 				comprobarError $? 303 $result
-			elif [ $VERSION = "6" ];then
-				result=$(yum -y install http://remi.mirrors.cu.be/enterprise/remi-release-6.rpm 2>&1)
-				comprobarError $? 303 $result
 			elif [ $VERSION = "28" ];then
 				result=$(yum -y install http://remi.mirrors.cu.be/fedora/remi-release-28.rpm 2>&1)
 				comprobarError $? 303 $result
-			elif [ $VERSION = "27" ];then
-				result=$(yum -y install http://remi.mirrors.cu.be/fedora/remi-release-27.rpm 2>&1)
-				comprobarError $? 303 $result
 			else
 				comprobarError 1 304
 			fi