updating variable for MDMAPPLABEL

This commit is contained in:
Michael
2022-09-21 16:49:22 +00:00
parent f162a67b93
commit ecd0ebf441
2 changed files with 9 additions and 17 deletions

View File

@@ -13,15 +13,13 @@ chmod 777 /var/tmp/depnotify.log
LOGO="mosyleb" # or "mosylem"
######################################################################
whatList=$MDMAPPLABEL
echo
echo THE BELOW ERROR IS NORMAL
while read line >> /dev/null
do
echo "$line"
done < "${1:-/dev/stdin}"
echo PLEASE IGNORE ABOVE ERROR
echo
whatList="$MDMAPPLABEL"
# CHECKS IF INSTALLOMATOR IS INSTALLED AND INSTALLS IF NOT
if [ ! -e "/usr/local/Installomator/Installomator.sh" ]; then
curl -s https://raw.githubusercontent.com/PurpleComputing/mdmscripts/main/Installomator.sh | bash
fi
# No sleeping
/usr/bin/caffeinate -d -i -m -u &
caffeinatepid=$!
@@ -41,7 +39,7 @@ prplappcount=`expr $prplappno + 4`
prpltrueappcount=`expr $prplappno + 1`
echo "Command: DeterminateManual: $prplappcount" >> /var/tmp/depnotify.log
echo "-- INSTALLING $prpltrueappcount APPS --"
echo Installs started for "$@"
echo Installs started for "$MDMAPPLABEL"
# Verify that Installomator has been installed
destFile="/usr/local/Installomator/Installomator.sh"
if [ ! -e "${destFile}" ]; then

View File

@@ -3,12 +3,6 @@
# SERVICE SCRIPT CALLED BY OTHER SCRIPTS
#
APPNAME=$MDMAPPNAME
INSTALLAPP=googleearth
ILOGO=mosyleb
LOGLOCAL=/Library/Logs/com.purplecomputing.mdm/
# UPDATE PURPLE HELPERS
curl -s -L https://prpl.it/helperscript | bash
@@ -17,7 +11,7 @@ curl -s -L https://prpl.it/helperscript | bash
##-------------------------------##
# SET APP TITLE TO APPNAME
echo "$APPNAME" >> /Library/Caches/com.purplecomputing.mdm/Apps/.appinstallname
echo "$MDMAPPNAME" >> /Library/Caches/com.purplecomputing.mdm/Apps/.appinstallname
# SET DEP NOTIFY FOR REINSTALL
curl -s -L https://prpl.it/brandDEPinstall | bash