It seems that $USER always represents the non-root user who initiated
the installer, even if it is running with admin/root privileges. So,
for example, the following postinstall script works fine for me,
creating a file with the name of that user on their Desktop:
su $USER -c "touch ~/Desktop/$USER"
This also works for running /usr/bin/mdimport, which hopefully solves
Geoff's original question.
Thanks all for your help.
======================================
Robert Stainsby
Melbourne, Australia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/installer-dev/email@hidden