Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions enrollment.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -x
TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -s -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
echo $JAMFURL
echo $computerInvitation
Expand Down Expand Up @@ -47,9 +48,10 @@ else
exit 1
fi
fi

if $shouldEnroll ; then
echo 'Attempting to enroll in Jamf Pro...'

# Download binaries from public host
jamfinstall

Expand All @@ -75,4 +77,5 @@ if $shouldEnroll ; then
fi

/bin/rm -rf /private/tmp/Binaries
exit $enrolled
exit $enrolled
fi