logstash/pkg/centos/after-install.sh
Aaron Mildenstein eec80944f9 Fix logrotate permissions after install
In some cases it seems that the file permissions for the logrotate
configuration file are not set properly.  This should address those
cases.

fixes #3490

Fixes #4135
2015-11-04 17:28:33 +00:00

6 lines
185 B
Bash

/sbin/chkconfig --add logstash
chown -R logstash:logstash /opt/logstash
chown logstash /var/log/logstash
chown logstash:logstash /var/lib/logstash
chmod 0644 /etc/logrotate.d/logstash