From f1fc2efcc80ba4f90e02ab150b3a9d9ef6c3d2e2 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 6 Aug 2015 15:03:59 -0400 Subject: [PATCH] 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 --- distribution/deb/pom.xml | 6 ++++++ distribution/rpm/pom.xml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/distribution/deb/pom.xml b/distribution/deb/pom.xml index 2567fa996ab..46173b033f1 100644 --- a/distribution/deb/pom.xml +++ b/distribution/deb/pom.xml @@ -139,6 +139,12 @@ root + + template + + ${packaging.elasticsearch.conf.dir}/scripts + + ${project.build.directory}/generated-packaging/deb/env/elasticsearch diff --git a/distribution/rpm/pom.xml b/distribution/rpm/pom.xml index f073561cf47..b682ec32201 100644 --- a/distribution/rpm/pom.xml +++ b/distribution/rpm/pom.xml @@ -144,6 +144,10 @@ + + ${packaging.elasticsearch.conf.dir}/scripts + noreplace + /etc/sysconfig/