mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +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
|
||||
%endif
|
||||
|
||||
if [ "$1" = "0" ]; then
|
||||
# deinstallation of the package - remove enabled features
|
||||
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
%else
|
||||
# rhel
|
||||
|
||||
@ -383,14 +376,15 @@ if [ "$1" -ge "1" ]; then
|
||||
fi
|
||||
%endif
|
||||
|
||||
%endif
|
||||
# suse / rhel
|
||||
|
||||
if [ "$1" = "0" ]; then
|
||||
# deinstallation of the package - remove enabled features
|
||||
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
||||
fi
|
||||
|
||||
exit 0
|
||||
%endif
|
||||
# suse / rhel
|
||||
|
||||
%preun bin
|
||||
# suse
|
||||
@ -401,9 +395,6 @@ exit 0
|
||||
%else
|
||||
%stop_on_removal %{name}
|
||||
%endif
|
||||
if [ "$1" = "0" ]; then
|
||||
%stop_on_removal %{name}
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user