Re: Installing in the user's home directory (PackageMaker Tiger and Leoprad)
Re: Installing in the user's home directory (PackageMaker Tiger and Leoprad)
- Subject: Re: Installing in the user's home directory (PackageMaker Tiger and Leoprad)
- From: "Bryan S. Lee" <email@hidden>
- Date: Thu, 19 Jun 2008 17:12:28 -0400
- Thread-topic: Installing in the user's home directory (PackageMaker Tiger and Leoprad)
Title: Re: Installing in the user's home directory (PackageMaker Tiger and Leoprad)
I use the $USER variable in my scripts to get to the user’s home directory.
For instance, say I’m installing a preferences file with a serial number for a particular app, but it needs to be in their ~/Library/Preferences folder.
I’d install it to /private/tmp/somefolder/ from PackageMaker
Then have a postscript that moves the file to /Users/$USER/Library/Preferences/
Depends on your setup if you’ll need to mess with permissions or not, but you could chmod files in the same script if necessary.
--
Bryan S. Lee
Information Resource Consultant II
Computer Support Services
Clemson Computing and Information Technology
Clemson University
email@hidden
ACHDS 10.4, MCP NTS/NTW
From: Eyal Redler <email@hidden>
Date: Thu, 19 Jun 2008 16:38:20 -0400
To: <email@hidden>
Subject: Installing in the user's home directory (PackageMaker Tiger and Leoprad)
Hi,
I need to install some files in the user's home directory using
PackageMaker. After browsing the net for answers I understand that one
possible solution to this is to install the files in some temp place
and then copy them over to the user folder in the postflight script.
What I'm missing are a few details:
a. How do I get the path to the user home folder, considering the fact
that the script is being run under root (will $HOME give me the right
result? it does in my tests but I don't know where this is documented
- I just saw some people use it)\
b. Are there any special considerations regarding ownership and
permissions
I thought this would be much more common problem and expected to find
many solutions on the net but to my surprise I couldn't find and
sample scripts for doing this, I would be grateful if someone could
share their scripts)
TIA
Eyal Redler
------------------------------------------------------------------------------------------------
"If Uri Geller bends spoons with divine powers, then he's doing it the
hard way."
--James Randi
www.eyalredler.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