Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/bin/bash
  2. #Created By Dan De Rusha Damon O'Hare 4-22-15
  3. #
  4. ## we have cocoaD installed in our Utilities directory
  5. #
  6. CD="/Applications/Utilities/cocoaDialog.app/Contents/MacOS/cocoaDialog"
  7. #
  8. ### Answer to install - Yes triggers the policy scoped with the custom trigger xeroxCorp5875
  9. rv=$($CD yesno-msgbox --no-cancel --text "Do you want to install Xerox Corp 5875?")
  10. if [ "$rv" == "1" ]; then
  11. echo "Yes"
  12. jamf policy -trigger xeroxCorp5875
  13. elif [ "$rv" == "2" ]; then
  14. echo "No, Don't Have time to Install Xerox 5875"
  15.  
  16. fi
  17.  
  18. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement