Fixed oopsie in Selinux webdir

This commit is contained in:
2020-12-04 17:22:53 +01:00
parent 06a7814d98
commit 93184de8eb
3 changed files with 5 additions and 5 deletions

View File

@@ -20,8 +20,8 @@ chown "$sitename":"$sitename" -R /var/www/"$domain"/html
if [ "$shortdist" = "cent8" ]; 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
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/$domain/html(/.*)?" > $OUTPUT 2>&1
restorecon -vr /var/www/ > $OUTPUT 2>&1
fi