- I created an shell script "mountNetworkShare_HCMHARBORLAP.sh"
- Then I created a login Policy to make the script run after user login. I already checked on "Force Distribution Points to use AFP/SMB instead of HTTP".
But the script failed to run, based on the logs, JAMF keeps looking for running script in /private/tmp folder.
Logs:
/usr/sbin/jamf is version 8.73
Executing Policy Mount Network Share...
Mounting afp://hcmcas01.ap.corp.ipgnetwork.com/CasperShare to /Volumes/CasperShare...
Running script mountNetworkShare_HCMHARBORLAP.sh...
Script exit code: 127
Script result: /bin/sh: /private/tmp/mountNetworkShare_HCMHARBORLAP.sh: No such file or directory
Unmounting file server...
How to fix this?