Fixed fail2ban and replaced cent8 with el8

This commit is contained in:
2020-12-09 13:29:25 +01:00
parent b112be5aeb
commit 2a6de08f75
12 changed files with 63 additions and 12 deletions

View File

@@ -48,7 +48,7 @@ fi
#Setting Permsissions
chown "$sitename":"$sitename" -R /var/www/"$domain"/html
if [ "$shortdist" = "cent8" ]; then
if [ "$shortdist" = "el8" ]; then
#Setting SeLiux perms for centos
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/$domain/html(/.*)?" > $OUTPUT 2>&1
restorecon -vr /var/www/ > $OUTPUT 2>&1