Updated SeLinux for web folder once again

This commit is contained in:
2020-12-04 17:04:53 +01:00
parent aebf9c97e4
commit 06a7814d98
7 changed files with 30 additions and 16 deletions

View File

@@ -5,10 +5,6 @@ if [ "$shortdist" = "cent8" ]; then
#SeLinux
semanage port -a -t ssh_port_t -p tcp 4242
systemctl enable ufw > $OUTPUT 2>&1
mkdir /var/www > $OUTPUT 2>&1
semanage fcontext -a -t httpd_sys_rw_content_t /var/www/ > $OUTPUT 2>&1
restorecon -vr /var/www/ > $OUTPUT 2>&1
#Motd
mkdir /etc/update-motd.d
echo 'if stat --printf="" /etc/update-motd.d/51* 2>/dev/null; then for f in /etc/update-motd.d/51*; do bash $f; done; fi' >> /etc/profile