Skip to content

Commit

Permalink
Reduce redunancies in spec file
Browse files Browse the repository at this point in the history
Remove redundant differences between SUSE and RHEL distributions.

refs #5818
  • Loading branch information
thardeck authored and gunnarbeutner committed Jul 30, 2014
1 parent 3b50356 commit a329505
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions icinga2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,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

Expand All @@ -384,14 +377,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
Expand All @@ -402,9 +396,6 @@ exit 0
%else
%stop_on_removal %{name}
%endif
if [ "$1" = "0" ]; then
%stop_on_removal %{name}
fi

exit 0

Expand Down

0 comments on commit a329505

Please sign in to comment.