From eb83d115380e4d60b111beca2b6b146322707c0c Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 3 Dec 2020 13:36:55 +0100 Subject: [PATCH] Fixed Selinx www folder --- CoreModules/generic/conf.sh | 5 ++++- CoreModules/generic/preconf.sh | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CoreModules/generic/conf.sh b/CoreModules/generic/conf.sh index dbffdb2..9bf57dd 100644 --- a/CoreModules/generic/conf.sh +++ b/CoreModules/generic/conf.sh @@ -3,7 +3,10 @@ ##--------------------## if [ "$shortdist" = "cent8" ]; then semanage port -a -t ssh_port_t -p tcp 4242 - systemctl enable ufw + systemctl enable ufw > $OUTPUT 2>&1 + mkdir /var/www > $OUTPUT 2>&1 + semanage fcontext -a -t httpd_sys_content_t /var/www/ > $OUTPUT 2>&1 + restorecon -vr /var/www/ > $OUTPUT 2>&1 fi ##-------## diff --git a/CoreModules/generic/preconf.sh b/CoreModules/generic/preconf.sh index fac8106..bc47795 100644 --- a/CoreModules/generic/preconf.sh +++ b/CoreModules/generic/preconf.sh @@ -45,9 +45,9 @@ elif [ "$shortdist" = "cent8" ]; then # System # ##------------## - localectl set-keymap us-int - useradd -r -U -s /usr/sbin/nologin -d /var/www www-data - systemctl disable firewalld --now + localectl set-keymap us-int > $OUTPUT 2>&1 + useradd -r -U -s /usr/sbin/nologin -d /var/www www-data > $OUTPUT 2>&1 + systemctl disable firewalld --now > $OUTPUT 2>&1 ##-------------## # Postfix #