Skip to content

Commit

Permalink
Fix logrotate file perms for Debian systems
Browse files Browse the repository at this point in the history
In some cases it seems that the file permissions for the logrotate
configuration file are not set properly. This should address those
cases.

Fixes elastic#4136
  • Loading branch information
untergeek authored and jordansissel committed Nov 4, 2015
1 parent eec8094 commit 65a5996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/debian/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ chown -R logstash:logstash /opt/logstash
chown logstash /var/log/logstash
chown logstash:logstash /var/lib/logstash
chmod 755 /etc/logstash
chmod 0644 /etc/logrotate.d/logstash
1 change: 1 addition & 0 deletions pkg/ubuntu/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
chown -R logstash:logstash /opt/logstash
chown logstash /var/log/logstash
chown logstash:logstash /var/lib/logstash
chmod 0644 /etc/logrotate.d/logstash

0 comments on commit 65a5996

Please sign in to comment.