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