diff options
author | Hilko Bengen <bengen@debian.org> | 2014-06-08 23:01:37 +0200 |
---|---|---|
committer | Hilko Bengen <bengen@debian.org> | 2014-06-09 09:30:22 +0200 |
commit | d981178802215457e9cc737b67342f0ea0ca3b47 (patch) | |
tree | 822f7b9e09658566f0b75b1fedbb7945486fb8fc /debian/elasticsearch.postinst | |
parent | f4fa8baf9af9f9751169cc265da9b750d4390c28 (diff) | |
download | elasticsearch-debian/1.0.3+dfsg-1.tar.gz |
Initial releasedebian/1.0.3+dfsg-1
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 |