Skip to content

Commit

Permalink
Set permission in debian postinst script correctly
Browse files Browse the repository at this point in the history
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
  • Loading branch information
spinscale committed Feb 18, 2014
1 parent 5499071 commit 0bce68e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deb/control/postinst
Expand Up @@ -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
Expand Down

0 comments on commit 0bce68e

Please sign in to comment.