mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Merge pull request #517 from mwmatter/workspaceone
Adding Workspace ONE support
This commit is contained in:
@@ -81,6 +81,7 @@ LOGO=appstore
|
|||||||
# - mosylem Mosyle Manager (Education)
|
# - mosylem Mosyle Manager (Education)
|
||||||
# - addigy Addigy
|
# - addigy Addigy
|
||||||
# - microsoft Microsoft Endpoint Manager (Intune)
|
# - microsoft Microsoft Endpoint Manager (Intune)
|
||||||
|
# - ws1 Workspace ONE (AirWatch)
|
||||||
# path can also be set in the command call, and if file exists, it will be used.
|
# path can also be set in the command call, and if file exists, it will be used.
|
||||||
# Like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"'
|
# Like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"'
|
||||||
# (spaces have to be escaped).
|
# (spaces have to be escaped).
|
||||||
@@ -367,10 +368,13 @@ displaydialogContinue() { # $1: message $2: title
|
|||||||
displaynotification() { # $1: message $2: title
|
displaynotification() { # $1: message $2: title
|
||||||
message=${1:-"Message"}
|
message=${1:-"Message"}
|
||||||
title=${2:-"Notification"}
|
title=${2:-"Notification"}
|
||||||
|
hubcli="/usr/local/bin/hubcli"
|
||||||
manageaction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action"
|
manageaction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action"
|
||||||
|
|
||||||
if [[ -x "$manageaction" ]]; then
|
if [[ -x "$manageaction" ]]; then
|
||||||
"$manageaction" -message "$message" -title "$title"
|
"$manageaction" -message "$message" -title "$title"
|
||||||
|
elif [[ -x "$hubcli" ]]; then
|
||||||
|
"$hubcli" notify -t "$title" -i "$message" -c "Dismiss"
|
||||||
else
|
else
|
||||||
runAsUser osascript -e "display notification \"$message\" with title \"$title\""
|
runAsUser osascript -e "display notification \"$message\" with title \"$title\""
|
||||||
fi
|
fi
|
||||||
@@ -5264,6 +5268,11 @@ case $LOGO in
|
|||||||
LOGO="/Library/Intune/Microsoft Intune Agent.app/Contents/Resources/AppIcon.icns"
|
LOGO="/Library/Intune/Microsoft Intune Agent.app/Contents/Resources/AppIcon.icns"
|
||||||
if [[ -z $MDMProfileName ]]; then; MDMProfileName="Management Profile"; fi
|
if [[ -z $MDMProfileName ]]; then; MDMProfileName="Management Profile"; fi
|
||||||
;;
|
;;
|
||||||
|
ws1)
|
||||||
|
# Workspace ONE
|
||||||
|
LOGO="/Applications/Workspace ONE Intelligent Hub.app/Contents/Resources/AppIcon.icns"
|
||||||
|
if [[ -z $MDMProfileName ]]; then; MDMProfileName="Device Manager"; fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
if [[ ! -a "${LOGO}" ]]; then
|
if [[ ! -a "${LOGO}" ]]; then
|
||||||
if [[ $(sw_vers -buildVersion) > "19" ]]; then
|
if [[ $(sw_vers -buildVersion) > "19" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user