mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Reduce redunancies in spec file
Remove redundant differences between SUSE and RHEL distributions. refs #5818
This commit is contained in:
parent
1fcf746108
commit
e7d3500ca7
15
icinga2.spec
15
icinga2.spec
@ -365,13 +365,6 @@ exit 0
|
|||||||
%insserv_cleanup
|
%insserv_cleanup
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
if [ "$1" = "0" ]; then
|
|
||||||
# deinstallation of the package - remove enabled features
|
|
||||||
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%else
|
%else
|
||||||
# rhel
|
# rhel
|
||||||
|
|
||||||
@ -383,14 +376,15 @@ if [ "$1" -ge "1" ]; then
|
|||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%endif
|
||||||
|
# suse / rhel
|
||||||
|
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
# deinstallation of the package - remove enabled features
|
# deinstallation of the package - remove enabled features
|
||||||
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
%endif
|
|
||||||
# suse / rhel
|
|
||||||
|
|
||||||
%preun bin
|
%preun bin
|
||||||
# suse
|
# suse
|
||||||
@ -401,9 +395,6 @@ exit 0
|
|||||||
%else
|
%else
|
||||||
%stop_on_removal %{name}
|
%stop_on_removal %{name}
|
||||||
%endif
|
%endif
|
||||||
if [ "$1" = "0" ]; then
|
|
||||||
%stop_on_removal %{name}
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user