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) post)
if [ "$UPDATE" != "yes" ]; then if [ "$UPDATE" != "yes" ]; then
# actions to execute if package is being installed. # actions to execute if package is being installed.
install -d /usr/share/elasticsearch/plugins install -d usr/share/elasticsearch/plugins
install -d -m0750 /var/log/elasticsearch install -d -m0750 var/log/elasticsearch
install -d -m0750 /var/lib/elasticsearch/data install -d -m0750 var/lib/elasticsearch/data
chown -R elastic /etc/elasticsearch chown -R elastic etc/elasticsearch
chown -R elastic /var/lib/elasticsearch/data chown -R elastic var/lib/elasticsearch/data
chown -R elastic /var/log/elasticsearch chown -R elastic var/log/elasticsearch
fi fi
;; ;;
esac esac

View File

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