Commit 5450624a authored by Owain Jones's avatar Owain Jones
Browse files

added selinux rules for gliders dirs

parent 94d4cc3e
......@@ -173,3 +173,14 @@ echo '::1 dev.gliders.localhost gliders.localhost' >> /etc/hosts
# cd -
# cp hhvm.service /etc/systemd/system/
# systemctl enable hhvm
# Create gliders dirs and allow the webserver to read/write to them
# (Mostly this sets up SELinux rules)
mkdir -p /var/gliders/www_dev /var/gliders/www /var/gliders/incoming /var/gliders/logs /var/gliders/static /var/gliders/daemon/logs
chown -R gliders /var/gliders
setsebool -P httpd_can_network_connect 1
chcon -R -t httpd_sys_rw_content_t /var/gliders/www
chcon -R -t httpd_sys_rw_content_t /var/gliders/www_dev
chcon -R -t httpd_sys_rw_content_t /var/gliders/incoming
chcon -R -t httpd_sys_rw_content_t /var/gliders/static
chcon -R -t httpd_sys_content_t /var/gliders/logs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment