mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-03 22:04:30 +01:00
MDM scripts
These scripts are great starting points for Mosyle and Addigy, and maybe other solutions as well.
This commit is contained in:
34
MDM/MDM valuesfromarguments.sh
Executable file
34
MDM/MDM valuesfromarguments.sh
Executable 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
|
||||
Reference in New Issue
Block a user