Re: Is it ok to create a directory from a postflight script?
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