File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packaging/common/cfengine-hub Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -771,6 +771,11 @@ find $PREFIX/httpd/htdocs/logs/ -type f -exec chmod 0640 {} +
771
771
find $PREFIX /httpd/htdocs/application/ -type f -exec chown -R root:$MP_APACHE_USER {} +
772
772
find $PREFIX /httpd/htdocs/application/ -type f -exec chmod 0440 {} +
773
773
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
+
774
779
# API non-executable
775
780
find $PREFIX /httpd/htdocs/api/ -type f ! -name ' *.sh' -exec chown -R root:$MP_APACHE_USER {} +
776
781
find $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 {} +
782
787
# API static non htaccess
783
788
find $PREFIX /httpd/htdocs/api/static -type f ! -name ' .htaccess' -exec chown -R root:$MP_APACHE_USER {} +
784
789
find $PREFIX /httpd/htdocs/api/static -type f ! -name ' .htaccess' -exec chmod 0440 {} +
790
+
785
791
chown root:$MP_APACHE_USER $PREFIX /httpd/htdocs/api/static
786
792
chmod 0660 $PREFIX /httpd/htdocs/api/static
787
793
You can’t perform that action at this time.
0 commit comments