mirror of
https://git.icinga.com/packaging/rpm-icinga2.git
synced 2025-07-31 01:44:05 +02:00
Fix permission issues on SUSE distributions
The icinga/cmd file was moved from the bin package to common.
This commit is contained in:
parent
37104df3f5
commit
6c09a2c5e7
21
icinga2.spec
21
icinga2.spec
@ -97,7 +97,6 @@ Summary: Icinga 2 binaries and libraries
|
|||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
|
|
||||||
%if "%{_vendor}" == "suse"
|
%if "%{_vendor}" == "suse"
|
||||||
PreReq: permissions
|
|
||||||
Provides: monitoring_daemon
|
Provides: monitoring_daemon
|
||||||
Recommends: monitoring-plugins
|
Recommends: monitoring-plugins
|
||||||
%if 0%{?suse_version} >= 1310
|
%if 0%{?suse_version} >= 1310
|
||||||
@ -172,6 +171,7 @@ Requires(post): shadow-utils
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: logrotate
|
BuildRequires: logrotate
|
||||||
%if "%{_vendor}" == "suse"
|
%if "%{_vendor}" == "suse"
|
||||||
|
PreReq: permissions
|
||||||
Provides: user(%{icinga_user})
|
Provides: user(%{icinga_user})
|
||||||
Provides: group(%{icinga_group})
|
Provides: group(%{icinga_group})
|
||||||
Provides: group(%{icingacmd_group})
|
Provides: group(%{icingacmd_group})
|
||||||
@ -424,27 +424,18 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s
|
|||||||
%if 0%{?use_systemd}
|
%if 0%{?use_systemd}
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
%if "%{_vendor}" == "suse"
|
%verifyscript common
|
||||||
%verifyscript bin
|
|
||||||
%verify_permissions -e %{_rundir}/%{name}/cmd
|
%verify_permissions -e %{_rundir}/%{name}/cmd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post bin
|
|
||||||
|
|
||||||
# suse
|
|
||||||
%if "%{_vendor}" == "suse"
|
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1310
|
|
||||||
%set_permissions %{_rundir}/%{name}/cmd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%endif #suse/rhel
|
|
||||||
|
|
||||||
%post common
|
%post common
|
||||||
# suse
|
# suse
|
||||||
%if "%{_vendor}" == "suse"
|
%if "%{_vendor}" == "suse"
|
||||||
|
%if 0%{?suse_version} >= 1310
|
||||||
|
%set_permissions %{_rundir}/%{name}/cmd
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?use_systemd}
|
%if 0%{?use_systemd}
|
||||||
%fillup_only %{name}
|
%fillup_only %{name}
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user