summarylogtreecommitdiffstats
path: root/elasticsearch5.install
diff options
context:
space:
mode:
authorHa The Tung2018-10-06 21:48:55 +0800
committerHa The Tung2018-10-06 21:48:55 +0800
commitd09e29567186408bad1d4fe85a902b9ea34e8fb0 (patch)
tree5e1796e7433792fa2ba7ab4b7ef8dcd48b259cae /elasticsearch5.install
parent002a4bf28a641d0e5bfc5a9c186e03e1e02a4698 (diff)
downloadaur-d09e29567186408bad1d4fe85a902b9ea34e8fb0.tar.gz
update no conflict
Diffstat (limited to 'elasticsearch5.install')
-rw-r--r--elasticsearch5.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/elasticsearch5.install b/elasticsearch5.install
new file mode 100644
index 000000000000..840321c23fc2
--- /dev/null
+++ b/elasticsearch5.install
@@ -0,0 +1,14 @@
+post_install() {
+ systemd-sysusers elasticsearch5.conf
+ systemd-tmpfiles --create elasticsearch5.conf
+}
+
+post_upgrade(){
+ systemd-tmpfiles --create elasticsearch5.conf
+
+ if [ "$(vercmp "$2" 5.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/5.0/breaking-changes-5.0.html and remove incompatible plugins from /usr/share/elasticsearch5/plugins"
+ echo " >> "
+ fi
+}