浏览代码

instalarPHP() cambiar mirror

Guzmán Castanedo Villalba 6 年之前
父节点
当前提交
87b4d803ab
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      install

+ 8 - 2
install

@@ -555,10 +555,16 @@ instalarPHP() {
 		comprobarError $? 103 $result
 		# Necesitamos un repositorio adicional para PHP-7 (REMI-RELEASE)
 		if [ $VERSION = "7" ];then
-			result=$(yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 2>&1)
+			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://rpms.remirepo.net/enterprise/remi-release-6.rpm 2>&1)
+			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