mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Set permission in debian postinst script correctly
The old post installation script on debian set all data to 644 inside of /etc/elasticsearch, which does not work, when there are subdirectories Closes #3820
This commit is contained in:
parent
a5001440bf
commit
565c212732
@ -34,7 +34,8 @@ case "$1" in
|
||||
# configuration files should not be modifiable by elasticsearch user, as this can be a security issue
|
||||
chown -Rh root:root /etc/elasticsearch/*
|
||||
chmod 755 /etc/elasticsearch
|
||||
chmod 644 /etc/elasticsearch/*
|
||||
find /etc/elasticsearch -type f -exec chmod 644 {} ';'
|
||||
find /etc/elasticsearch -type d -exec chmod 755 {} ';'
|
||||
|
||||
# if $2 is set, this is an upgrade
|
||||
if ( [ -n $2 ] && [ "$RESTART_ON_UPGRADE" = "true" ] ) ; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user