mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 18:35:18 +00:00
Try to use checkpath to fix kibana access rights;
This commit is contained in:
parent
7defdb52fd
commit
397fe84d0b
@ -11,9 +11,14 @@ command_args="--config ${KIBANA_CONFIG} --log-file /var/log/kibana/kibana.json"
|
||||
start_stop_daemon_args="--user=\"${KIBANA_USER}\" --background --pidfile=\"${pidfile}\""
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -o "${KIBANA_USER}" -m750 "/var/log/kibana"
|
||||
checkpath -d -o "${KIBANA_USER}" -m755 "/run/kibana"
|
||||
checkpath -f -o "${KIBANA_USER}" -m644 "/opt/kibana/optimize/.babelcache.json"
|
||||
checkpath -d -o "${KIBANA_USER}" -m750 "/var/log/kibana" \
|
||||
"/opt/kibana/optimize" \
|
||||
"/opt/kibana/optimize/bundles"
|
||||
checkpath -d -o "${KIBANA_USER}" -m755
|
||||
checkpath -f -o "${KIBANA_USER}" -m644 \
|
||||
"/opt/kibana/optimize/.babelcache.json" \
|
||||
/opt/kibana/optimize/bundles/*
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
Loading…
Reference in New Issue
Block a user