Add SWDA to deployment helpers

This commit is contained in:
Michael
2022-09-21 16:33:55 +01:00
parent 6bab34f058
commit 0fb151cfc9
3 changed files with 30 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ echo Making App Support Directories
mkdir -p /Library/Application\ Support/Purple/ mkdir -p /Library/Application\ Support/Purple/
echo Cleaning App Support Cache and Log Directories echo Cleaning App Support Cache and Log Directories
rm -rf /Library/Application\ Support/Purple/* rm -rf /Library/Application\ Support/Purple/*
cd /Library/Application\ Support/Purple/
# Pull latest files # Pull latest files
echo Downloading Image Files echo Downloading Image Files
@@ -18,6 +19,9 @@ curl -s -o /Library/Application\ Support/Purple/launch-dep-en.sh https://raw.git
curl -s -o /Library/Application\ Support/Purple/zt-dialog.sh https://raw.githubusercontent.com/PurpleComputing/helpful-scripts/main/zt-dialog.sh curl -s -o /Library/Application\ Support/Purple/zt-dialog.sh https://raw.githubusercontent.com/PurpleComputing/helpful-scripts/main/zt-dialog.sh
curl -s -o /Library/Application\ Support/Purple/join-zt-network.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/join-zt-network.sh curl -s -o /Library/Application\ Support/Purple/join-zt-network.sh https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/join-zt-network.sh
echo Execute Helper Files
curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/swda-deploy.sh | bash # INSTALLS SWDA
echo Making Cache and Log Directories echo Making Cache and Log Directories
mkdir -p /Library/Caches/com.purplecomputing.mdm/ mkdir -p /Library/Caches/com.purplecomputing.mdm/
mkdir -p /Library/Caches/com.purplecomputing.mdm/Scripts mkdir -p /Library/Caches/com.purplecomputing.mdm/Scripts

26
Helpers/swda-deploy.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
# echo "*** PURPLE SWDA DEPLOY SCRIPT ***"
################################################################################################
#
# ******
# *...../ / ******
# ************** *****/ *****/*****/***/*************/ ****** /**********
# ******/..*****/ *****/ *****/********//******/ ,*****/******,***** ,*****/
# *****/ ***** *****/ *****/*****/ *****/ /**************************
# *******//*****/ *************/*****/ *********************/*******./*/* ())
# ************* ******/*****/*****/ *****/******/. ****** ********** (()))
# *****/ *****/ ())
# *****/ *****/
#
################################################################################################
# SWIFT DEFAULT APPS DEPLOYMENT SCRIPT
################################################################################################
cd /Library/Application\ Support/Purple/
curl -s -o /Library/Application\ Support/Purple/swda.zip https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Helpers/swda.zip
unzip swda.zip
sleep 3
rm swda.zip
xattr -r -d com.apple.quarantine /Library/Application\ Support/Purple/swda
ln -s /Library/Application\ Support/Purple/swda /usr/local/bin/swda

BIN
Helpers/swda.zip Normal file

Binary file not shown.