File tree Expand file tree Collapse file tree
packaging/common/cfengine-hub Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -771,6 +771,11 @@ find $PREFIX/httpd/htdocs/logs/ -type f -exec chmod 0640 {} +
771771find $PREFIX /httpd/htdocs/application/ -type f -exec chown -R root:$MP_APACHE_USER {} +
772772find $PREFIX /httpd/htdocs/application/ -type f -exec chmod 0440 {} +
773773
774+ # API dirs ENT-4250
775+ # Note that this will include the 'api' dir itself
776+ find $PREFIX /httpd/htdocs/api/ -type d ! -name ' static' -exec chown root:$MP_APACHE_USER {} +
777+ find $PREFIX /httpd/htdocs/api/ -type d ! -name ' static' -exec chmod 0550 {} +
778+
774779# API non-executable
775780find $PREFIX /httpd/htdocs/api/ -type f ! -name ' *.sh' -exec chown -R root:$MP_APACHE_USER {} +
776781find $PREFIX /httpd/htdocs/api/ -type f ! -name ' *.sh' -exec chmod 0440 {} +
@@ -782,6 +787,7 @@ find $PREFIX/httpd/htdocs/api/ -type f -name '*.sh' -exec chmod 0550 {} +
782787# API static non htaccess
783788find $PREFIX /httpd/htdocs/api/static -type f ! -name ' .htaccess' -exec chown -R root:$MP_APACHE_USER {} +
784789find $PREFIX /httpd/htdocs/api/static -type f ! -name ' .htaccess' -exec chmod 0440 {} +
790+
785791chown root:$MP_APACHE_USER $PREFIX /httpd/htdocs/api/static
786792chmod 0660 $PREFIX /httpd/htdocs/api/static
787793
You can’t perform that action at this time.
0 commit comments