installer with postinstall script that opens the getting started guide

This commit is contained in:
Laurent Sansonetti
2012-03-16 19:23:43 +01:00
parent 2a79a149b5
commit 37434e93c6
5 changed files with 9 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ class UpdateCommand < Command
curl("-# \"#{url}\" -o #{tmp_dest}")
$stderr.puts "Installing software update..."
installer = "/usr/sbin/installer -pkg \"#{tmp_dest}\" -target / >& /tmp/installer.stderr"
installer = "MOTION_UPDATE=1 /usr/sbin/installer -pkg \"#{tmp_dest}\" -target / >& /tmp/installer.stderr"
unless system(installer)
die "An error happened when installing the software update: #{File.read('/tmp/installer.stderr')}"
end