gonchik / munki

Automatically exported from code.google.com/p/munki
Other
0 stars 0 forks source link

Feature Request: Preflight and Postflight scripts in pkgsinfo files #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great if a preflight and postflight script could be specified in an 
applications pkgsinfo file in the same manner that there is the ability for an 
uninstall script embedded in pkgsinfo files.  Here's some feedback from the 
discussion group, 
http://groups.google.com/group/munki-dev/browse_thread/thread/d4754d761b1723cb.

Thanks
- Trey

Original issue reported on code.google.com by treyd...@gmail.com on 8 Mar 2011 at 4:10

GoogleCodeExporter commented 8 years ago
Give r1058 a spin.

pkginfo items can now optionally contain a "preinstall_script" and/or a 
"postinstall_script". These are embedded scripts that have the same rules as 
the optional embedded "uninstall_script".

Failure of the preinstall_script will abort the installation attempt.
Failure of the postinstall_script will log errors, but the install will be 
considered complete.

I've done minimal testing; I'll let those of you who requested the feature give 
it a workout...

Original comment by gregnea...@mac.com on 8 Mar 2011 at 6:26