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:mime-version:content-type:content-transfer-encoding:content-disposition; b=Plo0donfV5dBMcmfSiiRz3WYzBOnUbsD28McOVYZaBIWiM4D4Ns203StfeEQm2netj5bPLPS59lGiRubD3V2LYfDPqh965l7PnZLCdL0bpI0rK31McIRbWL/8iJsT08tAtQacmzx9BtXo0KJmGXWtoSczwhuYkyzNw0/1E8N0rg= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=utwGhd8fKXrz7BC+NUoIiKaY5+hIGZ0VDd+pALzp1TuYkdtv9qnCcbKCgaY+G7VeWez4kbxeEpf3dtWt82oGbCv+9De2nrJSSIbzHk2G8YUV/BPqjn9qFY+gPWudbJ0CAmCixomninHv+bs1uouDnZ1+3066hO1OmrvxCEoVzU8= I'm very new to the Packagemaker scene and have been running into a problem with a bash script I wanted to add. The Package I'm making needs to do a few things. 1 Copy a specific version of Microsoft Messenger into the Applications Folder 2 Put in a plist into the /Library/Preferences location 3 Run a bash script that installs certificates into the X509Anchors Keychain (located in /System/Library/Keychains/X509Anchors location I can do Part 1 and 2 Successfully. Part 3 is giving me all sorts of problems. The script is titled "postinstall" and requires root level access. Here is a copy of the script. #!/bin/bash sudo certtool i $1/Contents/Resources/BCMRootCA.cer d k=/System/Library/Keychains/X509Anchors sudo certtool i $1/Contents/Resources/BCMEnt1CA.cer d k=/System/Library/Keychains/X509Anchors 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 Kevsteelio _______________________________________________ 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