This commit is contained in:
wattsy74
2022-01-19 09:03:40 +00:00
parent 90d8310746
commit a6e79b8d72

View File

@@ -27,8 +27,11 @@ appName='AccountEdge NE'
forceQuit='Y' forceQuit='Y'
logfile="/Library/Caches/com.purplecomputing.mdm/Logs/AccountEdgeNEInstallScript.log" logfile="/Library/Caches/com.purplecomputing.mdm/Logs/AccountEdgeNEInstallScript.log"
deplog="/var/tmp/depnotify.log" deplog="/var/tmp/depnotify.log"
OSvers_URL=$( sw_vers -productVersion | sed 's/[.]/_/g' )
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X ${OSvers_URL}) AppleWebKit/535.6.2 (KHTML, like Gecko) Version/5.2 Safari/535.6.2"
scriptver="1.0" scriptver="1.0"
# Making Purple Cache directories for in the event that the helper script hasn't been run # 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/Caches/com.purplecomputing.mdm/
mkdir -p /Library/Caches/com.purplecomputing.mdm/Logs/ mkdir -p /Library/Caches/com.purplecomputing.mdm/Logs/
@@ -47,7 +50,7 @@ fi
/bin/echo "`date`: Downloading." >> ${logfile} /bin/echo "`date`: Downloading." >> ${logfile}
/bin/echo "Downloading." /bin/echo "Downloading."
/usr/bin/curl -s -o /Library/Caches/com.purplecomputing.mdm/Apps/${dnldfile} ${downloadUrl} /usr/bin/curl -L -o /Library/Caches/com.purplecomputing.mdm/Apps/${dnldfile} ${downloadUrl}
if [[ "${forceQuit}" = "Y" ]]; then if [[ "${forceQuit}" = "Y" ]]; then
killall ${appName} killall ${appName}
fi fi
@@ -73,6 +76,6 @@ fi
/bin/sleep 5 /bin/sleep 5
/bin/echo "`date`: Deleting the downloaded file." >> ${logfile} /bin/echo "`date`: Deleting the downloaded file." >> ${logfile}
/bin/rm /Library/Caches/com.purplecomputing.mdm/Apps/${dnldfile} /bin/rm /Library/Caches/com.purplecomputing.mdm/Apps/${dnldfile}
/bin/echo "Command: DeterminateManualStep: 1" >> ${deplog} /bin/echo "Command: DeterminateManualStep: 1" >> ${deplog}