• 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
Installer script requiring super-user access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installer script requiring super-user access


  • Subject: Installer script requiring super-user access
  • From: Ron Aldrich <email@hidden>
  • Date: Wed, 19 Oct 2011 10:44:43 -0700

Hello All,

I've run into an issue with the following installer postinstall script:

#!/bin/sh

# postinstall.sh

rm -f /Library/Application\ Support/Eternal/Eternalâ„¢\ Photo\ Drive.dmg
mkdir -p /Library/Application\ Support/Eternal
cp /Volumes/Eternalâ„¢\ Photo\ Drive/.Gozinta_support/Eternalâ„¢\ Photo\ Drive.dmg /Library/Application\ Support/Eternal/

The function of the script is to make a copy of the installer (and all of it's support files) and place it somewhere on the drive where it will be accessible to the application later.  The file needs to be installed in a manner that allows it to be read by all users.

The issue is that while the script used to work fine up until Lion, it now fails because /Library/Application Support/ is no longer user writable.

Any suggestions?

Thanks,

Ron Aldrich
Software Architects, Inc.

 _______________________________________________
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: Installer script requiring super-user access
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: Environment variables question
  • Next by Date: Re: Installer script requiring super-user access
  • Previous by thread: Re: Environment variables question
  • Next by thread: Re: Installer script requiring super-user access
  • Index(es):
    • Date
    • Thread