Fixed Selinx www folder
This commit is contained in:
@@ -3,7 +3,10 @@
|
|||||||
##--------------------##
|
##--------------------##
|
||||||
if [ "$shortdist" = "cent8" ]; then
|
if [ "$shortdist" = "cent8" ]; then
|
||||||
semanage port -a -t ssh_port_t -p tcp 4242
|
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
|
fi
|
||||||
|
|
||||||
##-------##
|
##-------##
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ elif [ "$shortdist" = "cent8" ]; then
|
|||||||
# System #
|
# System #
|
||||||
##------------##
|
##------------##
|
||||||
|
|
||||||
localectl set-keymap us-int
|
localectl set-keymap us-int > $OUTPUT 2>&1
|
||||||
useradd -r -U -s /usr/sbin/nologin -d /var/www www-data
|
useradd -r -U -s /usr/sbin/nologin -d /var/www www-data > $OUTPUT 2>&1
|
||||||
systemctl disable firewalld --now
|
systemctl disable firewalld --now > $OUTPUT 2>&1
|
||||||
|
|
||||||
##-------------##
|
##-------------##
|
||||||
# Postfix #
|
# Postfix #
|
||||||
|
|||||||
Reference in New Issue
Block a user