Re: Packagemaker and using scripts with Sudo
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pRqrO4mDTlAfly1tdpS+OQHDk1GbkCD3cAzSD1ppk88KdJoppoQPoRAyasEGeMMTzibTz52NVEVGlCN8OhUnK1vwBOi4EYgdVPnt3XE59NqYxNH9eIW6jiFXpNtK44u6ScKOzKH3lSGS3IWZ17igr8Zg6z2uL/rpfYnMCLtdygE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GpLf0j/35duJDkikNtAEBh0J6WRjutziIvwLWg1VnknEkG3rR3JNAZHrEjA3lIqaIHnnDDn3ZDMbqRjpz9F65GFC39zAvGoIuthE5W208gecMGOsH6cSr0tr1xWJKezrnf+AOLTG/Y7eMxtWRoYRQRb7qrB4XwngonHxaWVvxNI= On 7/29/07, Stéphane Sudre <ssudre2@wanadoo.fr> wrote:
On dimanche, juillet 29, 2007, at 05:38 AM, Kevin Steele wrote:
[...]
As far as I can tell, the script does not run on install even when I setup the package to require admin or root access. I'm not sure what I'm doing wrong, and some suggestions would be nice. Thanks
postinstall scripts are only called on the first install of a package. If you have previously installed this package during your tests, there is a receipt of this package in /Library/Receipts or ~/Library/Receipts.
If you want this script to be run for every install, you need to move to a postflight script.
I changed the Bash script from postinstall to postflight, removed the receipts anyway, and the script still does't run. I also tried naming the script with explicit extension postflight.sh and that didn't seem to work either. Here is the install log. Jul 29 20:29:30 Steele-Family-Mac : @(#)PROGRAM:Install PROJECT:Install-143 DEVELOPER:root BUILT:Dec 1 2006 18:50:40\n Jul 29 20:29:30 Steele-Family-Mac : @(#)PROGRAM:Installer PROJECT:Installer-95 DEVELOPER:root BUILT:Jun 13 2007 16:30:22\n Jul 29 20:29:30 Steele-Family-Mac : Hardware: iMac5,1 @ 2000 MHz (x2), 2048 MB Jul 29 20:29:30 Steele-Family-Mac : Running OS Build: 8R2218 Jul 29 20:29:30 Steele-Family-Mac : My Great App Installation Log Jul 29 20:29:30 Steele-Family-Mac : Opened from: /Users/ksteele/Desktop/Untitled.pkg Jul 29 20:29:31 Steele-Family-Mac : It took 0.240112 seconds to finish launching. Jul 29 20:29:41 Steele-Family-Mac : Distribution: My Great App Jul 29 20:29:41 Steele-Family-Mac : Installation checks completed successfully. Jul 29 20:30:20 Steele-Family-Mac : admin auth received to install Jul 29 20:30:20 Steele-Family-Mac : ================================================================================ Jul 29 20:30:20 Steele-Family-Mac : User picked Easy Install Jul 29 20:30:20 Steele-Family-Mac : Choices selected for installation: Jul 29 20:30:20 Steele-Family-Mac : Install: "My Great App" Jul 29 20:30:20 Steele-Family-Mac : Untitled.pkg : 1 : 0.1.0.0.1 Jul 29 20:30:20 Steele-Family-Mac : ================================================================================ Jul 29 20:30:20 Steele-Family-Mac : It took 0.000601 seconds to summarize the package selections. Jul 29 20:30:20 Steele-Family-Mac : Starting installation: Jul 29 20:30:20 Steele-Family-Mac : Preparing volume "Macintosh HD" for installation Jul 29 20:30:20 Steele-Family-Mac : Configuring volume "Macintosh HD" Jul 29 20:30:21 Steele-Family-Mac : Preparing local booted disk Jul 29 20:30:21 Steele-Family-Mac : Create temporary directory "/private/tmp/Untitled.pkg.11925uvUVjD" Jul 29 20:30:21 Steele-Family-Mac : Processing My Great App: Jul 29 20:30:21 Steele-Family-Mac : Initialize patching Jul 29 20:30:21 Steele-Family-Mac : Determining files to install Jul 29 20:30:21 Steele-Family-Mac : Evaluating versions of bundles Jul 29 20:30:21 Steele-Family-Mac : Evaluating custom file version checking Jul 29 20:30:21 Steele-Family-Mac : Configuring deferred files Jul 29 20:30:21 Steele-Family-Mac : Assembling temporary receipt Jul 29 20:30:21 Steele-Family-Mac : Performing pre-extraction actions Jul 29 20:30:21 Steele-Family-Mac : ==== It took 0.014024 seconds to check for prebinding Jul 29 20:30:21 Steele-Family-Mac : Creating destination path Jul 29 20:30:21 Steele-Family-Mac : Extracting files Jul 29 20:30:21 Steele-Family-Mac : 1029 files looked up in 0.01 seconds. 1029 files written in 0.75 seconds. Jul 29 20:30:21 Steele-Family-Mac : 21194 kilobytes installed. Jul 29 20:30:21 Steele-Family-Mac : Performing post-extraction actions Jul 29 20:30:21 Steele-Family-Mac : Assembling receipt Jul 29 20:30:22 Steele-Family-Mac : Removing temporary directory "/private/tmp/Untitled.pkg.11925uvUVjD" Jul 29 20:30:22 Steele-Family-Mac : Finalize disk "Macintosh HD" Jul 29 20:30:22 Steele-Family-Mac : Notifying system of updated components Jul 29 20:30:22 Steele-Family-Mac : TOTAL: Packages report 1029 files, 1029 actual files written Jul 29 20:30:22 Steele-Family-Mac : Private/Total = (6.8MB, 65.4MB), Heap/Total = (3.1MB, 18.1MB), Regions(malloc, private) = (33, 27) Jul 29 20:30:22 Steele-Family-Mac : It took 2.163130 seconds to successfully install "My Great App" (1 pkg(s)) Jul 29 20:30:22 Steele-Family-Mac : It took 1.003712 seconds to Configuring volume "Macintosh HD" (dm prepare*disk) Jul 29 20:30:22 Steele-Family-Mac : It took 1.145518 seconds to Install My Great App: 20 elements Jul 29 20:30:22 Steele-Family-Mac : It took 1.144256 seconds to successfully Install package My Great App Jul 29 20:30:22 Steele-Family-Mac : It took 0.049080 seconds to Assembling temporary receipt Jul 29 20:30:22 Steele-Family-Mac : It took 0.041698 seconds to Collect path info (ATS, Sec Equiv, Kext, Pref Panes) Jul 29 20:30:22 Steele-Family-Mac : It took 0.769394 seconds to Write files Jul 29 20:30:22 Steele-Family-Mac : It took 0.267273 seconds to Assembling receipt Jul 29 20:30:22 Steele-Family-Mac : Jul 29 20:30:22 Steele-Family-Mac : Summary Information Jul 29 20:30:22 Steele-Family-Mac : Type Elapsed time (sec) Jul 29 20:30:22 Steele-Family-Mac : patch 0.000031 Jul 29 20:30:22 Steele-Family-Mac : zero 0.011206 Jul 29 20:30:22 Steele-Family-Mac : extract 0.769394 Jul 29 20:30:22 Steele-Family-Mac : config 0.058323 Jul 29 20:30:22 Steele-Family-Mac : receipt 0.316353 Jul 29 20:30:22 Steele-Family-Mac : disk 1.006561 Jul 29 20:30:22 Steele-Family-Mac : install 1.145518 Jul 29 20:30:22 Steele-Family-Mac : Jul 29 20:30:23 Steele-Family-Mac : Starting installation: Jul 29 20:30:23 Steele-Family-Mac : Finalizing installation. Jul 29 20:30:23 Steele-Family-Mac : Registering applications Jul 29 20:30:23 Steele-Family-Mac : Registered /Applications/MicrosoftMessenger.app. Jul 29 20:30:23 Steele-Family-Mac : Registered /Applications/MicrosoftMessenger.app/Contents/SharedSupport/Alerts Daemon.app. Jul 29 20:30:23 Steele-Family-Mac : Registered /Applications/MicrosoftMessenger.app/Contents/SharedSupport/Microsoft Error Reporting.app. Jul 29 20:30:23 Steele-Family-Mac : Registered /Applications/MicrosoftMessenger.app/Contents/SharedSupport/Microsoft Messenger Daemon.app. Jul 29 20:30:23 Steele-Family-Mac : Private/Total = (6.8MB, 66.2MB), Heap/Total = (3.1MB, 18.1MB), Regions(malloc, private) = (33, 32) Jul 29 20:30:23 Steele-Family-Mac : It took 0.100554 seconds to successfully End of Install Jobs Jul 29 20:30:23 Steele-Family-Mac : It took 0.021146 seconds to Send End Jobs Will Begin notification "Starting end-of-install jobs." Jul 29 20:30:23 Steele-Family-Mac : It took 0.047970 seconds to Send Install Completed notification "Finished install." Jul 29 20:30:23 Steele-Family-Mac : Jul 29 20:30:23 Steele-Family-Mac : Summary Information Jul 29 20:30:23 Steele-Family-Mac : Type Elapsed time (sec) Jul 29 20:30:23 Steele-Family-Mac : AppRegister 0.019220 Jul 29 20:30:23 Steele-Family-Mac : zero 0.081334 Jul 29 20:30:23 Steele-Family-Mac : _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Steele