summaryrefslogtreecommitdiff
path: root/debian/elasticsearch.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/elasticsearch.postinst')
-rwxr-xr-xdebian/elasticsearch.postinst24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/elasticsearch.postinst b/debian/elasticsearch.postinst
new file mode 100755
index 0000000..0a9e622
--- /dev/null
+++ b/debian/elasticsearch.postinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ configure)
+ dpkg-statoverride --quiet --update --add \
+ elasticsearch elasticsearch 0755 /var/log/elasticsearch || true
+ dpkg-statoverride --quiet --update --add \
+ elasticsearch elasticsearch 0755 /var/lib/elasticsearch || true
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0