OpenSearch/qa
javanna 4d7d29f65b Plugins: plugin script to set proper plugin config dir attributes
Depending on how elasticsearch is installed, we have two scenarios to take into account that relate to user, group and permissions assigned to the config directory:

1) deb/rpm package: /etc/elasticsearch is root:elasticsearch 750 and the plugin script is run from root user
2) tar/zip archive: es config dir is most likely elasticsearch:elasticsearch and the plugin script is most likely run from elasticsearch user

When the plugin script copies over the plugin config dir within the es config dir, it should take care of setting the proper user, group and permissions, which vary depending on how elasticsearch was installed in the first place. Should be root:elasticsearch 750 if installed from a package, or elasticsearch:elasticsearch if installed from an archive.

This commit makes sure that the plugin script looks at user, group and permissions of the config dir and copies them over to the plugin config subdirectory, whatever they are, so that they get properly setup depending on how elasticsearch was installed in the first place. We also make sure that execute permissions are left untouched for files.

Relates to #11016
Closes #14048
2015-10-13 15:56:26 +02:00
..
smoke-test-client Fix straggler in qa tests 2015-09-21 23:43:24 -04:00
smoke-test-multinode Remove Guava as a dependency 2015-10-09 14:19:22 -04:00
smoke-test-plugins Remove Guava as a dependency 2015-10-09 14:19:22 -04:00
vagrant Plugins: plugin script to set proper plugin config dir attributes 2015-10-13 15:56:26 +02:00
pom.xml Test: Move a couple more rest-api-spec resource dirs into resources 2015-09-21 21:57:51 -07:00