elasticsearch: fix absolute paths in INSTALL/REMOVE
This commit is contained in:
parent
2b930420f4
commit
9c72f0115a
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue