Last active
July 14, 2016 00:25
-
-
Save stevewood-tx/327f6c21341d7c4ac4cf7cbf10c850e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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