mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
MDM scripts
This commit is contained in:
36
MDM/Installomator update.sh
Executable file
36
MDM/Installomator update.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Updating Installomator
|
||||
# Usefull to push out after deployment if earlier version was deployed in DEP profile
|
||||
# Currently script uses valuesfromarguments as a label is not included before next release, so this can be used to install to version 0.7
|
||||
|
||||
what="installomator" # enter the software to install
|
||||
|
||||
# Verify that Installomator has been installed
|
||||
destFile="/usr/local/Installomator/Installomator.sh"
|
||||
if [ ! -e "${destFile}" ]; then
|
||||
echo "Installomator not found here:"
|
||||
echo "${destFile}"
|
||||
echo "Exiting."
|
||||
exit 99
|
||||
fi
|
||||
|
||||
${destFile} valuesfromarguments\
|
||||
name=Installomator \
|
||||
type=pkg \
|
||||
packageID=com.scriptingosx.Installomator \
|
||||
downloadURL=https://github.com/Installomator/Installomator/releases/download/v0.7release/Installomator-0.7.0.pkg \
|
||||
appNewVersion=0.7 \
|
||||
expectedTeamID=JME5BW3F3R \
|
||||
BLOCKING_PROCESS_ACTION=ignore \
|
||||
NOTIFY=silent
|
||||
|
||||
# ${destFile} ${what} BLOCKING_PROCESS_ACTION=ignore NOTIFY=silent
|
||||
if [ $? != 0 ]; then
|
||||
# This is currently not working in Mosyle, that will ignore script errors. Please request support for this from Mosyle!
|
||||
echo "Error installing ${what}. Exit code $?"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
echo "[$(DATE)][LOG-END]"
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user