Fixed oopsie in Selinux webdir
This commit is contained in:
@@ -41,8 +41,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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user