• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Packagemaker and using scripts with Sudo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Packagemaker and using scripts with Sudo


  • Subject: Packagemaker and using scripts with Sudo
  • From: "Kevin Steele" <email@hidden>
  • Date: Sat, 28 Jul 2007 22:38:06 -0500

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Packagemaker and using scripts with Sudo
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Dist files and localization
  • Next by Date: Re: Packagemaker and using scripts with Sudo
  • Previous by thread: Dist files and localization
  • Next by thread: Re: Packagemaker and using scripts with Sudo
  • Index(es):
    • Date
    • Thread