elasticsearch: fix absolute paths in INSTALL/REMOVE

This commit is contained in:
Michael Gehring 2017-07-13 09:11:27 +00:00
parent 2b930420f4
commit 9c72f0115a
2 changed files with 7 additions and 7 deletions

View File

@ -3,12 +3,12 @@ case "$ACTION" in
post)
if [ "$UPDATE" != "yes" ]; then
# actions to execute if package is being installed.
install -d /usr/share/elasticsearch/plugins
install -d -m0750 /var/log/elasticsearch
install -d -m0750 /var/lib/elasticsearch/data
chown -R elastic /etc/elasticsearch
chown -R elastic /var/lib/elasticsearch/data
chown -R elastic /var/log/elasticsearch
install -d usr/share/elasticsearch/plugins
install -d -m0750 var/log/elasticsearch
install -d -m0750 var/lib/elasticsearch/data
chown -R elastic etc/elasticsearch
chown -R elastic var/lib/elasticsearch/data
chown -R elastic var/log/elasticsearch
fi
;;
esac

View File

@ -1,7 +1,7 @@
# Template file for 'elasticsearch'
pkgname=elasticsearch
version=5.1.2
revision=1
revision=2
wrksrc="elasticsearch-${version}"
only_for_archs="i686 x86_64"
depends="virtual?java-runtime"