summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomáš Mózes <hydrapolic@gmail.com>2016-12-29 08:36:05 +0000
committerMichael Palimaka <kensington@gentoo.org>2016-12-29 23:18:15 +1100
commitfd9029d6a236faa1cca2f96f5578320a63d89360 (patch)
tree6dbf8172a785ae06eb4bb4a44a74143f742304d8 /app-admin/logstash-bin
parentdev-util/distro-info-data: version bump (diff)
downloadgentoo-fd9029d6a236faa1cca2f96f5578320a63d89360.tar.gz
gentoo-fd9029d6a236faa1cca2f96f5578320a63d89360.tar.bz2
gentoo-fd9029d6a236faa1cca2f96f5578320a63d89360.zip
app-admin/logstash-bin: fix permissions via initscript
Diffstat (limited to 'app-admin/logstash-bin')
-rw-r--r--app-admin/logstash-bin/files/logstash.initd410
-rw-r--r--app-admin/logstash-bin/logstash-bin-5.1.1-r1.ebuild (renamed from app-admin/logstash-bin/logstash-bin-5.1.1.ebuild)0
2 files changed, 6 insertions, 4 deletions
diff --git a/app-admin/logstash-bin/files/logstash.initd4 b/app-admin/logstash-bin/files/logstash.initd4
index b9e9055ea779..00b732e8b8d2 100644
--- a/app-admin/logstash-bin/files/logstash.initd4
+++ b/app-admin/logstash-bin/files/logstash.initd4
@@ -54,10 +54,12 @@ start_pre() {
rc_ulimit="-n ${LS_OPEN_FILES}"
- checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "${LS_INSTALL_DIR}/data"
- checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "$(dirname "${pidfile}")"
- checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "${LS_LOG_DIR}"
- checkpath -f -o "${LS_USER}":"${LS_GROUP}" -m640 "${LS_LOG_DIR}/logstash-plain.log"
+ local d
+ for d in "${LS_INSTALL_DIR}/data" "$(dirname "${pidfile}")" "${LS_LOG_DIR}"; do
+ checkpath -d -o "${LS_USER}":"${LS_GROUP}" -m750 "$d"
+ chown -R "${LS_USER}":"${LS_GROUP}" "$d"
+ done
+
}
stop() {
diff --git a/app-admin/logstash-bin/logstash-bin-5.1.1.ebuild b/app-admin/logstash-bin/logstash-bin-5.1.1-r1.ebuild
index d9a0c6781cb1..d9a0c6781cb1 100644
--- a/app-admin/logstash-bin/logstash-bin-5.1.1.ebuild
+++ b/app-admin/logstash-bin/logstash-bin-5.1.1-r1.ebuild