MDM scripts

These scripts are great starting points for Mosyle and Addigy, and maybe other solutions as well.
This commit is contained in:
Søren Theilgaard
2021-10-19 11:50:53 +02:00
parent dfd9ab1071
commit 9e1f8f491d
5 changed files with 465 additions and 0 deletions

34
MDM/MDM valuesfromarguments.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
# Installation using Installomator
# Example of installing software using valuesfromarguments to install a custom software
what="valuesfromarguments" # 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=\"Zoho\ WorkDrive\" \
type=dmg \
downloadURL=https://files-accl.zohopublic.com/public/wdbin/download/46f971e4fc4a32b68ad5d7dade38a7d2 \
appNewVersion=2.6.25 \
expectedTeamID=TZ824L8Y37 \
BLOCKING_PROCESS_ACTION=quit \
NOTIFY=all
# ${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