Last active
August 29, 2015 14:16
-
-
Save starlightsys/1515dfedd21a82919f1f to your computer and use it in GitHub Desktop.
Revisions
-
starlightsys revised this gist
Feb 27, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #!/bin/bash -x if [ "$EUID" -ne 0 ] then echo "Must be run as root." exit -
starlightsys revised this gist
Feb 27, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,6 @@ fi setsebool -P httpd_anon_write 1 setsebool -P httpd_sys_script_anon_write 1 for d in $(echo "ezpublish/cache,ezpublish/logs,ezpublish/config,ezpublish_legacy/design,ezpublish_legacy/extension,ezpublish_legacy/settings,ezpublish_legacy/var,web" | tr "," "\n"); do semanage fcontext -a -t public_content_rw_t "/var/www/html/ez/$d(/.*)?" done restorecon -F -R -v /var/www/html/ez -
starlightsys created this gist
Feb 27, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/bin/bash if [ "$EUID" -ne 0 ] then echo "Must be run as root." exit fi setsebool -P httpd_anon_write 1 setsebool -P httpd_sys_script_anon_write 1 for d in $(echo "ezpublish/cache,ezpublish/logs,ezpublish/config,ezpublish_legacy/design,ezpublish_legacy/extension,ezpublish_legacy/settings,ezpublish_legacy/var,web" | tr "," "\n"); do semanage fcontext -a -t public_content_rw_t "/var/www/html/ez/$d(/.*)?" done restorecon -F -R -v /var/www/html/ez