]> granicus.if.org Git - icinga2/commitdiff
Reduce redunancies in spec file
authorTim Hardeck <thardeck@suse.de>
Fri, 4 Jul 2014 11:00:19 +0000 (13:00 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 30 Jul 2014 11:42:06 +0000 (13:42 +0200)
Remove redundant differences between SUSE and RHEL distributions.

refs #5818

icinga2.spec

index e5e23918e45dbfe943246d7674913c1bf3399704..2668e0a612772a809d8925cebbc33a1317ef1946 100644 (file)
@@ -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