Ver código fonte

* Repositorio EPEL sólo para CentOS

Guzmán Castanedo Villalba 5 anos atrás
pai
commit
c239389f58
1 arquivos alterados com 10 adições e 5 exclusões
  1. 10 5
      install

+ 10 - 5
install

@@ -931,8 +931,11 @@ instalarNginx() {
 		comprobarError $? 102 $result
 	elif [ $rhelOS = true ]; then
 		# Hay que instalar primero otro repositorio
-		result=$(yum -y install epel-release)
-		comprobarError $? 103 $result
+		if [ $ID = "centos" ];then
+			# Sólo para CentOS
+			result=$(yum -y install epel-release)
+			comprobarError $? 103 $result
+		fi
 		result=$(yum -y install nginx 2>&1)
 		comprobarError $? 102 $result
 	else
@@ -1220,9 +1223,11 @@ instalarPHP() {
 			comprobarError 1 301
 		fi
 	elif [ $rhelOS = true ];then
-		# Necesitamos un repositorio adicional para PHP-7 (EPEL-RELEASE)
-		result=$(yum -y install epel-release yum-utils 2>&1)
-		comprobarError $? 103 $result
+		if [ $ID = "centos" ];then
+			# Necesitamos un repositorio adicional para PHP-7 (EPEL-RELEASE) sólo en CentOS
+			result=$(yum -y install epel-release yum-utils 2>&1)
+			comprobarError $? 103 $result
+		fi
 		# Necesitamos un repositorio adicional para PHP-7 (REMI-RELEASE)
 		if [ ! -f /etc/yum.repos.d/remi-php72.repo ];then
 			result=$(yum -y install "$remiRepo" 2>&1)