Explorar el Código

* Cambios en configurarSELinux() para adaptarlo a fedora

Guzmán Castanedo Villalba hace 5 años
padre
commit
13ba86c4eb
Se han modificado 1 ficheros con 13 adiciones y 2 borrados
  1. 13 2
      install

+ 13 - 2
install

@@ -1791,8 +1791,19 @@ configurarSELinux() {
 # Configurar SELinux (Sólo para RHEL)
 	which semanage >/dev/null 2>&1
 	if [ $? -ne 0 ];then
-		result=$(yum -y install policycoreutils-python 2>&1)
-		comprobarError $? 605 $result
+		case $ID in
+			centos)
+				result=$(yum -y install policycoreutils-python 2>&1)
+				comprobarError $? 605 $result
+				;;
+			fedora)
+				result=$(yum -y install policycoreutils-python-utils 2>&1)
+				comprobarError $? 605 $result
+				;;
+			*)
+				comprobarError 1 604
+				;;
+		esac
 	fi
 	semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/moodledata(/.*)?" > /dev/null 2>&1
 	comprobarError $? 604