diff options
Diffstat (limited to 'debian/elasticsearch.postinst')
-rwxr-xr-x | debian/elasticsearch.postinst | 24 |
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 |