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
|
if [ "$shortdist" = "cent8" ]; then
|
||||||
#Setting SeLiux perms for centos
|
#Setting SeLiux perms for centos
|
||||||
semanage fcontext -a -t httpd_sys_rw_content_t /var/www/"$domain"/html > $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
|
restorecon -vr /var/www/ > $OUTPUT 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ chown "$sitename":"$sitename" -R /var/www/"$domain"/html
|
|||||||
|
|
||||||
if [ "$shortdist" = "cent8" ]; then
|
if [ "$shortdist" = "cent8" ]; then
|
||||||
#Setting SeLiux perms for centos
|
#Setting SeLiux perms for centos
|
||||||
semanage fcontext -a -t httpd_sys_rw_content_t /var/www/"$domain"/html > $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
|
restorecon -vr /var/www/ > $OUTPUT 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ chown "$sitename":"$sitename" -R /var/www/"$domain"/html
|
|||||||
|
|
||||||
if [ "$shortdist" = "cent8" ]; then
|
if [ "$shortdist" = "cent8" ]; then
|
||||||
#Setting SeLiux perms for centos
|
#Setting SeLiux perms for centos
|
||||||
semanage fcontext -a -t httpd_sys_rw_content_t /var/www/"$domain"/html > $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
|
restorecon -vr /var/www/ > $OUTPUT 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user