Re: Directory creation and permissions
Re: Directory creation and permissions
- Subject: Re: Directory creation and permissions
- From: Greg Neagle <email@hidden>
- Date: Mon, 22 Feb 2010 12:35:25 -0800
Shouldn't the install path be "/Library/Documentation", with ./
CompanyName/ProductName as part of the payload?
Then you could set the owner, group, and mode in the payload.
-Greg
On Feb 22, 2010, at 11:01 AM, Dan Spirlock wrote:
Hello,
I'm using PackageMaker 3.0.3 in OS 10.5. I'm running into a weird
issue with our installers and wondered if it is normal behavior.
I'm creating a metapacakge that contains several packages. One
particular package has its destination set to a path that would
result in a directory being created on the target machine during
installation, like this:
/Library/Documentation/<CompanyName>/<ProductName>
Where <CompanyName> and <ProductName> contain hardcoded values.
What I'm finding is that when the installer is run, and these
directories are created in the Documentation folder, the
<ProductName> directory has it's owner set to the user id of the
user that created the package. Obviously, this user id has no
meaning on any machine other than the one that authored the
package. The result is that the created directory is inaccessible.
The owner is set to "_unknown" and the permissions are rw-----.
The actual files installed within the created directory have their
permissions set correctly.
I know that I can easily fix this with a postinstall script, but
this seems like I'm doing something wrong when authoring the
metapackage. I don't see any way to set the permissions of the
directory in packagemaker.
Does anyone have any tips on getting this working correctly?
Thanks in advance,
Dan Spirlock
BIAS
http://www.bias-inc.com
_______________________________________________
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
_______________________________________________
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