Skip to content

Commit

Permalink
- add {pre,post}install support
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Jun 15, 2011
1 parent 6aa5097 commit fd83c5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/fpm/target/solaris.rb
Expand Up @@ -54,6 +54,9 @@ def build!(params)
# TODO(sissel): allow setting default file owner.
File.open("Prototype", "w") do |prototype|
prototype.puts("i pkginfo")
prototype.puts("i preinstall") if self.scripts["pre-install"]
prototype.puts("i postinstall") if self.scripts["post-install"]

# TODO(sissel): preinstall/postinstall
IO.popen("pkgproto data=/").each_line do |line|
type, klass, path, mode, user, group = line.split
Expand Down

0 comments on commit fd83c5a

Please sign in to comment.