Skip to content

Commit

Permalink
fix package scripts for rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Mar 19, 2012
1 parent a9cb065 commit a672ce8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions templates/rpm.erb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -66,24 +66,24 @@ fi
%clean %clean
# noop # noop


<% if scripts["pre-install"] -%> <% if scripts[:before_install] -%>
%pre %pre
<%= File.read(scripts["pre-install"]) %> <%= scripts[:before_install] %>
<% end -%> <% end -%>
<% if scripts["post-install"] -%> <% if scripts[:after_install] -%>
%post %post
<%= File.read(scripts["post-install"]) %> <%= scripts[:after_install] %>
<% end -%> <% end -%>
<% if scripts["pre-uninstall"] -%> <% if scripts[:before_remove] -%>
%preun %preun
<%= File.read(scripts["pre-uninstall"]) %> <%= scripts[:before_remove] %>
<% end -%> <% end -%>
<% if scripts["post-uninstall"] -%> <% if scripts[:after_remove] -%>
%postun %postun
<%= File.read(scripts["post-uninstall"]) %> <%= scripts[:after_remove] %>
<% end -%> <% end -%>
%files %files
Expand Down

0 comments on commit a672ce8

Please sign in to comment.