-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall-FACSTAFF-software
31 lines (27 loc) · 1.16 KB
/
install-FACSTAFF-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
29
30
31
#!/bin/bash
#
# script to install FACSTAFF 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 Microsoft Office 2016,install-office2016"
"Setting Office 2016 Prefs,install-office2016-prefs"
"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 Pulse Secure VPN,install-pulse"
"Installing Microsoft Remote Desktop,install-microsoft-rd"
)
# 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!