-
Notifications
You must be signed in to change notification settings - Fork 4
/
install-KIOSK-software
28 lines (24 loc) · 1001 Bytes
/
install-KIOSK-software
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
#!/bin/bash
#
# script to install KIOSK software with an array. Taken from jamf professional services script
# which can be found here: https://github.com/jamfprofessionalservices/DEP-Notify/blob/master/depNotify.sh
JAMFBIN=/usr/local/bin/jamf
DNLOG=/var/tmp/depnotify.log
# The policy array must be formatted "Progress Bar text,customTrigger". These will be
# run in order as they appear below.
POLICY_ARRAY=(
"Installing KeyClient,install-keyclient-mobile"
"Installing Pharos,install-pharos"
"Installing Symantec,install-SEP-facstaff"
"Installing Xerox Drivers,install-xerox-drivers"
"Installing Chrome,install-chrome"
"Installing Adobe Acrobat,install-acrobat"
"Installing Flash,install-flash"
"Installing OIV,install-oiv"
)
# Loop to run policies
for POLICY in "${POLICY_ARRAY[@]}"; do
echo "Status: $(echo "$POLICY" | cut -d ',' -f1)" >> "$DNLOG"
"$JAMFBIN" policy -event "$(echo "$POLICY" | cut -d ',' -f2)"
done
# don't update inventory, the provisioning script will do that for you!