-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDeep_Freeze_APFS_LicenseKey.sh
More file actions
61 lines (49 loc) · 1.58 KB
/
Deep_Freeze_APFS_LicenseKey.sh
File metadata and controls
61 lines (49 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh
# Jamf JSS Parameters 1 through 3 are predefined as mount point, computer name, and username
pathToScript=$0
mountPoint=$1
computerName=$2
userName=$3
shift 3
# Shift off the $1 $2 $3 parameters passed by the JSS so that parameter 4 is now $1
####################################################################################################
#
# Modified for Deep Freeze 7 for Mac for APFS-formatted Macs.
#
####################################################################################################
#
# ABOUT THIS PROGRAM
#
# NAME
# Deep_Freeze_APFS_LicenseKey.sh
#
# SYNOPSIS
# sudo Deep_Freeze_APFS_LicenseKey.sh <LicenseKey>
#
# DESCRIPTION
# This script activates Deep Freeze Mac with a license key.
#
#
#
#
####################################################################################################
#
#
# DEFINE VARIABLES & READ IN PARAMETERS
#
####################################################################################################
####################################################################################################
#
# SCRIPT CONTENTS - DO NOT MODIFY BELOW THIS LINE
#
####################################################################################################
dfLicenseKey="$1"
if [ "$dfLicenseKey" == "" ];then
echo "Error: The parameter 'dfLicenseKey' is blank. Please specify a Deep Freeze License Key."
exit 1
fi
echo "Activating Deep Freeze Mac with a license key..."
/usr/local/bin/deepfreeze license --set $dfLicenseKey
echo "See the status of Deep Freeze..."
/usr/local/bin/deepfreeze license --info
exit 0