Re: installing to user home directory with a network home dir
Re: installing to user home directory with a network home dir
- Subject: Re: installing to user home directory with a network home dir
- From: Conor Schutzman <email@hidden>
- Date: Tue, 16 Dec 2014 02:20:36 +0000 (GMT)
I would "install" the files to a temp location, and then move them to the user's home folder in post flight. You can use scripting to lookup the current console user, and then pass that to a dscl command to get user's home folder.
Another alternative would be to install the files to a temp location, then build and deploy a launch agent that copies the files from that source to the home folder of any user that logs in. That way you are protected against situations where there are no users logged in (common in many deployment situations, including re-imaging), or if a different user is logged in (such as an administrative user), or if you want the files present for multiple users (I assume that multiple users can log into the same machine in your environment, hence the need for network home folders).
On Dec 15, 2014, at 05:03 PM, Owen Urkov <email@hidden> wrote:
Hello,
we are developing a pkgbuild built installer that needs to allow the user to install our software to either /Applications (system wide) or ~/Applications (user specific). As far as I can tell, having this in our distribution file
<domains enable_currentUserHome="true" enable_localSystem="true"/>
should suffice. And this seems to work fine in most cases.
The case where things go bad is when the user tries to install to their home directory and their home directory is not /Users/username. Our test case is having a home directory on a NFS share. In this case, we receive the following errors
Oct 15 12:47:32 bld-mac-10_9-1 installer[99170] : Proceeding with home directory install using network home at /nfsland/usr/username
2014-10-15 12:47:32.501 installer[99170:507] -[IFNetworkDiskObject fileSystemType]: unrecognized selector sent to instance 0x7f988b7009d0
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