|
@@ -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
|