mirror of https://github.com/Icinga/icinga2.git
parent
0bb50b35da
commit
0e086118ca
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue