diff --git a/icinga2.spec b/icinga2.spec index e5e23918e..2668e0a61 100644 --- a/icinga2.spec +++ b/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