Hi there,
I'm sure this will be pretty straight forward but was hoping someone could help troubleshoot why this isn't running
I have a basic script set up to add a server into the "Connect to Servers" list
!/bin/bash
/usr/bin/sfltool add-item -n "OSAKA" com.apple.LSSharedFileList.FavoriteServers "cifs://OSAKA"
killall Terminal
This works a treat when I make it a unix executable, but when I try and make it into a .sh and deploy through Casper scripts I receive the following error:
Sending Wake On LAN command...
Opening SSH Connection to 10.10.32.56...
Authenticating...
Successfully authenticated.
Verifying Computer’s Identity...
The MAC Address has been verified.
Checking Operating System Version...
Running Mac OS X 10.11.6 (15G1510)
Verifying /usr/local/jamf/bin/jamf...
Verifying /usr/sbin/jamf...
/usr/sbin/jamf does not exist.
Downloading /usr/local/jamf/bin/jamf from JSS...
Moving jamf binary to /usr/local/jamf/bin/jamf...
Created the jamf binary directory /usr/local/jamf/bin.
Moving jamf binary to /usr/local/jamf/bin/jamf...
Moved the JAMF CLI Binary to /usr/local/jamf/bin/jamf.
Creating symlink /usr/local/bin/jamf...
Enabling /usr/local/jamf/bin/jamf...
Enabled the JAMF CLI Binary.
Verifying /Library/Preferences/com.jamfsoftware.jamf.plist...
Preparing Policy...
Executing Policy 2017-06-19 at 7:28 PM | brett | 1 Computer
Running script OSAKAmatt.sh...
Script exit code: 1
Script result: Created item with URL: cifs://OSAKA in list:No matching processes were found
Error running script: return code was 1.
Submitting log to https://herschel.jamfcloud.com/
Finished.
Can anyone suggest what I might do to resolve this issue?