-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupport-app.sh
30 lines (24 loc) · 1.13 KB
/
support-app.sh
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
#!/bin/sh
#########################################################################
#
# ABOUT THIS PROGRAM
#
# NAME
# Support App Install Script
#
# SYNOPSIS
# support-app.sh
# FOR INITIAL DEPLOYMENT OR ENROLMENT USE ONLY
#########################################################################
#
# Making Purple Cache directories for in the event that the helper script hasn't been run
mkdir -p /Library/Caches/com.purplecomputing.mdm/
mkdir -p /Library/Logs/com.purplecomputing.mdm/
mkdir -p /Library/Caches/com.purplecomputing.mdm/Apps/
curl -s -L -o /Library/Caches/com.purplecomputing.mdm/Apps/SA1.pkg https://github.com/root3nl/SupportApp/releases/download/v2.4.2/Support.2.4.2.pkg
curl -s -L -o /Library/Caches/com.purplecomputing.mdm/Apps/SA2.pkg https://github.com/root3nl/SupportApp/releases/download/v2.4.2/SupportHelper1.0.pkg
echo "-- INSTALLING SUPPORT APP --"
installer -pkg /Library/Caches/com.purplecomputing.mdm/Apps/SA1.pkg -target /
installer -pkg /Library/Caches/com.purplecomputing.mdm/Apps/SA2.pkg -target /
rm -rf /Library/Caches/com.purplecomputing.mdm/Apps/SA1.pkg /Library/Caches/com.purplecomputing.mdm/Apps/SA2.pkg
sleep 1