summarylogtreecommitdiffstats
path: root/elasticsearch.install
diff options
context:
space:
mode:
authorAtte Lautanala2016-11-03 15:39:35 +0200
committerAtte Lautanala2016-11-03 15:39:35 +0200
commit76f8927f78172a3c7125bdc517e62ee973e7fcd1 (patch)
tree5d800c28ea42281f44c2d4af185ca45de9623c4b /elasticsearch.install
downloadaur-76f8927f78172a3c7125bdc517e62ee973e7fcd1.tar.gz
Create Elasticsearch2 package
Diffstat (limited to 'elasticsearch.install')
-rw-r--r--elasticsearch.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/elasticsearch.install b/elasticsearch.install
new file mode 100644
index 000000000000..6077726f4f22
--- /dev/null
+++ b/elasticsearch.install
@@ -0,0 +1,14 @@
+post_install() {
+ systemd-sysusers elasticsearch.conf
+ systemd-tmpfiles --create elasticsearch.conf
+}
+
+post_upgrade(){
+ systemd-tmpfiles --create elasticsearch.conf
+
+ if [ "$(vercmp $2 2.0.0)" -lt 0 ]; then
+ echo " >> "
+ echo " >> Major version update. Please take a look at breaking changes https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking-changes-2.0.html and remove incompatible plugins from /usr/share/elasticsearch/plugins"
+ echo " >> "
+ fi
+}