I am having an issue coping a file into the current user Library/Preferences
See below
I have tried replacing the cp with mv,ditto and sudo in front
I have also tried putting the file in /tmp
Are post install scripts able to run sudo commands?
!/bin/sh
postinstall
loggedInUser=/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'
cp /Users/Shared/com.filemaker.client.pro12.plist /Users/$USER/Library/Preferences/com.filemaker.client.pro12.plist
chown -R $loggedInUser:staff /Users/$USER/Library/Preferences/com.filemaker.client.pro12.plist
