Create brandDEPinstall.sh

This commit is contained in:
Michael
2021-10-04 20:00:36 +01:00
parent 24e29f6393
commit 3b9f80e220

View File

@@ -0,0 +1,35 @@
#!/bin/sh
#########################################################################
#
# ABOUT THIS PROGRAM
#
# NAME
# DEPNotify Branding for app installs
#
# SYNOPSIS
# brandDEPinstall.sh
# FOR INITIAL DEPLOYMENT OR ENROLMENT USE ONLY
#########################################################################
#
# HISTORY
#
# Version: 1.2
#
# - 1.1 Michael Tanner, 04.10.2021
#
#########################################################################
# Script to brand DEPNotify with PurpleComputing for app installs.
#
## BRANDING DEPNOTIFY WINDOW
echo 'Command: MainTitle: Deploying your Mac' >> /var/tmp/depnotify.log
echo 'Command: Image: /Library/Application Support/Purple/logo.png' >> /var/tmp/depnotify.log
echo 'Command: MainText: Your organisation is using a Mobile Device Management solution provided by Purple Computing, we are now installing your organisations software, settings and policies.' >> /var/tmp/depnotify.log
## STARTING INSTALLS ###
echo 'Status: Starting Software Installs' >> /var/tmp/depnotify.log
#sudo -u $(stat -f '%Su' /dev/console) /bin/sh <<'END'
chmod 777 /var/tmp/depnotify.log
killall DEPNotify
/Applications/Utilities/DEPNotify.app/Contents/MacOS/DEPNotify
chmod 777 /var/tmp/depnotify.log