Fix file permissions for /var/*/icinga2 and /etc/icinga.

Fixes #5221
This commit is contained in:
Gunnar Beutner 2013-11-26 14:21:40 +01:00
parent 0bb50b35da
commit 0e086118ca
2 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@ fi
# Start Icinga 2
start() {
mkdir -p $(dirname -- $ICINGA2_PID_FILE)
chown $ICINGA2_USER:$ICINGA2_GROUP $(dirname -- $ICINGA2_PID_FILE)
mkdir -p $(dirname -- $ICINGA2_ERROR_LOG)
chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $(dirname -- $ICINGA2_ERROR_LOG)
chmod 750 $(dirname -- $ICINGA2_ERROR_LOG)
mkdir -p $ICINGA2_STATE_DIR/run/icinga2/cmd
chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $ICINGA2_STATE_DIR/run/icinga2/cmd

View File

@ -368,7 +368,7 @@ exit 0
%files classicui-config
%defattr(-,root,root,-)
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{icingaclassicconfdir}
%attr(0751,%{icinga_user},%{icinga_group}) %dir %{icingaclassicconfdir}
%config(noreplace) %{icingaclassicconfdir}/cgi.cfg
%config(noreplace) %{apacheconfdir}/icinga.conf
%config(noreplace) %attr(0640,root,%{apachegroup}) %{icingaclassicconfdir}/passwd