Skip to content

Instantly share code, notes, and snippets.

@stevewood-tx
Last active July 14, 2016 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevewood-tx/327f6c21341d7c4ac4cf7cbf10c850e8 to your computer and use it in GitHub Desktop.
Save stevewood-tx/327f6c21341d7c4ac4cf7cbf10c850e8 to your computer and use it in GitHub Desktop.
## Set global variables
LOGPATH='/path/to/your/logs'
JSSURL='https://<yourjssurl>'
JSSCONTACTTIMEOUT=120 # amount of time to wait before timing out waiting for connection
LOGFILE=$LOGPATH/deployment-$(date +%Y%m%d-%H%M).logging #re-name to whatever name you want
VERSION=10.11.5
## Setup logging
if [[ ! -d $LOGPATH ]]; then
mkdir $LOGPATH
fi
set -xv; exec 1> $LOGFILE 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment