Add checks also for other daemons
This commit is contained in:
parent
156c8fd884
commit
50deab800d
30
bacula.spec
30
bacula.spec
@ -181,12 +181,21 @@ Provides: bacula-storage-sqlite = %{version}-%{release}
|
||||
Obsoletes: bacula-storage-sqlite < 5.2.0
|
||||
Provides: bacula-storage-postgresql = %{version}-%{release}
|
||||
Obsoletes: bacula-storage-postgresql < 5.2.0
|
||||
%if 0%{?fedora} || 0%{?rhel} > 6
|
||||
Requires(post): systemd-sysv
|
||||
|
||||
%if 0%{?fedora} == 16 || 0%{?fedora} == 17
|
||||
Requires(post): systemd-units
|
||||
Requires(preun): systemd-units
|
||||
Requires(postun): systemd-units
|
||||
%else
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
||||
Requires(post): systemd-sysv
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires(preun): /sbin/chkconfig
|
||||
Requires(preun): /sbin/service
|
||||
@ -207,12 +216,21 @@ devices.
|
||||
Summary: Bacula backup client
|
||||
Group: System Environment/Daemons
|
||||
Requires: bacula-common%{?_isa} = %{version}-%{release}
|
||||
%if 0%{?fedora} || 0%{?rhel} > 6
|
||||
Requires(post): systemd-sysv
|
||||
|
||||
%if 0%{?fedora} == 16 || 0%{?fedora} == 17
|
||||
Requires(post): systemd-units
|
||||
Requires(preun): systemd-units
|
||||
Requires(postun): systemd-units
|
||||
%else
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
|
||||
Requires(post): systemd-sysv
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
|
||||
Requires(post): /sbin/chkconfig
|
||||
Requires(preun): /sbin/chkconfig
|
||||
Requires(preun): /sbin/service
|
||||
|
Loading…
Reference in New Issue
Block a user