Packaging: rpm and deb create scripts directory

Elasticsearch will create this if it doesn't exist if it cant but because
it doesn't own /etc/elasticsearch when installed by rpm and deb it can't
create /etc/elasticsearch/scripts.

Closes #12702
This commit is contained in:
Nik Everett 2015-08-06 15:03:59 -04:00
parent c2f774ac57
commit f1fc2efcc8
2 changed files with 10 additions and 0 deletions

View File

@ -139,6 +139,12 @@
<group>root</group>
</mapper>
</data>
<data>
<type>template</type>
<paths>
<path>${packaging.elasticsearch.conf.dir}/scripts</path>
</paths>
</data>
<!-- Add environment vars file -->
<data>
<src>${project.build.directory}/generated-packaging/deb/env/elasticsearch</src>

View File

@ -144,6 +144,10 @@
</source>
</sources>
</mapping>
<mapping>
<directory>${packaging.elasticsearch.conf.dir}/scripts</directory>
<configuration>noreplace</configuration>
</mapping>
<!-- Add environment vars file -->
<mapping>
<directory>/etc/sysconfig/</directory>