Fixed Selinx www folder

This commit is contained in:
2020-12-03 13:36:55 +01:00
parent 18439cc934
commit eb83d11538
2 changed files with 7 additions and 4 deletions

View File

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

View File

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