Quick change JSS url

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/bash
# Swap to dev server, or test server with parameter, otherwise, set to production.
if [[ $1 == "dev" ]]
then
  defaults write com.jamfsoftware.jss url https://devjss.example.com:8443/
elif [[ $1 == "test" || $1 == "jsstest" ]]
then
  defaults write com.jamfsoftware.jss url https://jsstest.example.com:8443/
else
  defaults write com.jamfsoftware.jss url https://jss.example.com:8443/
fi
# Output what was set
defaults read com.jamfsoftware.jss url

Hopefully that helps someone.

Comments

Comments powered by Disqus