• 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
Re: Is it ok to create a directory from a postflight script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it ok to create a directory from a postflight script?


  • Subject: Re: Is it ok to create a directory from a postflight script?
  • From: email@hidden
  • Date: Tue, 6 Jan 2009 07:41:46 -0800


On Jan 2, 2009, at 12:25 PM, OSullivan, Steven wrote:

Hello all,

I have a postflight script that is composed of the following steps:


#!/bin/sh

chmod 775 /Library/Application\ Support/Company
chown root:admin /Library/Application\ Support/Company


I need to create a folder in /Library/Application\ Support/Company/ called 'target'. Is it ok to add the following step to the postflight script:


mkdir /Library/Application\ Support/Company/target

Or, should this be in a postinstall script instead?

/bin/mkdir -p /Library/Application\ Support/Company/target

/bin/chmod 775 Library/Application\ Support/Company/target
/usr/sbin/chown root:admin /Library/Application\ Support/Company/target


postflight is fine with the command above.


_______________________________________________ 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: Is it ok to create a directory from a postflight script?
      • From: Karl Kuehn <email@hidden>
References: 
 >Is it ok to create a directory from a postflight script? (From: "OSullivan, Steven" <email@hidden>)

  • Prev by Date: Re: Distribution packages and Panther
  • Next by Date: RE: Distribution packages and Panther
  • Previous by thread: Is it ok to create a directory from a postflight script?
  • Next by thread: Re: Is it ok to create a directory from a postflight script?
  • Index(es):
    • Date
    • Thread