Citrix Receiver for Mac.pkg v11.8.2.
JAMF Casper 8.70
OSX 10.8.5
When I try to install Citrix Receiver for Mac via JAMF Casper, the Citrix-provided postinstall script fails:
$ cat /Library/Logs/ReceiverInstall.log Starting install at Tue Jan 7 03:20:04 EST 2014 Dumping environment: INSTALLER_TEMP=/private/tmp/PKInstallSandbox.aRXFDY/tmp DSTVOLUME=/ TMPDIR=/private/tmp/PKInstallSandbox.aRXFDY/tmp DSTROOT=/ SCRIPT_NAME=postinstall SHARED_INSTALLER_TEMP=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager-shared-tmp INSTALLER_SECURE_TEMP=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Secure_Temp.1666402934 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec PWD=/private/tmp/PKInstallSandbox.aRXFDY/Scripts/com.citrix.ICAClient.gTiUVs INSTALL_PKG_SESSION_ID=com.citrix.ICAClient PACKAGE_PATH=/Library/Application Support/JAMF/Downloads/Install Citrix Receiver v11.8.2.pkg SHLVL=1 COMMAND_LINE_INSTALL=1 _=/usr/bin/printenv Dumping 4 Arguments: Arg 1: /Library/Application Support/JAMF/Downloads/Install Citrix Receiver v11.8.2.pkg Arg 2: / Arg 3: / Arg 4: / Extracting userName from Installing as user ConfigureAgent AM agent launchctl failed loading agent
The problem appears to be these lines in the Citrix-provided postinstall script:
#!/bin/bash
# Uncomment set-x to get verbose logging in the console
#set -x
CITRIX="Citrix Receiver"
DAZZLE_APPS_FOLDER="/Applications/Dazzle"
DAZZLE_APPS_FOLDER_LEN=echo ${#DAZZLE_APPS_FOLDER}
DAZZLE_APPS_FOLDER_LEN=$((DAZZLE_APPS_FOLDER_LEN + 1)) # +1 for the trailing slash
# We need to know the real logged in user for
# normal install - the user double click the installer
# scripted install - the installer command is inside a script (both with and without sudo)
# command line install - the user runs 'sudo installer' from the command line
# Merc Server install - the installer is run from within an application with elevated permissions
# $USER - okay for normal, but nothing else
#not valid for a normal install
# WriteLog $USERNAME
# WriteLog $LOGNAME
# WriteLog $(who -m)
# WriteLog $(whoami)
# WriteLog $(logname)
# WriteLog $(id -un)
# WriteLog $(id -urn)
userName=$(stat -f "%Su" "$HOME")
It appears that the $HOME environment variable isn't being set when this pkg is installed via JAMF Casper.
So my questions are:
- Have any of you successfully deployed Citrix Receiver v11.8.2 via JAMF Casper via policy?
- Is the $HOME variable set and available to postinstall scripts during install?
- What workarounds would you suggest?
Thanks for any advice or assistance!
mthakur
