Merge pull request #653 from mwmatter/main

Workspace ONE Support
This commit is contained in:
Armin Briegel
2022-09-02 10:31:05 +02:00
committed by GitHub
3 changed files with 9 additions and 0 deletions

View File

@@ -64,9 +64,12 @@ displaynotification() { # $1: message $2: title
message=${1:-"Message"} message=${1:-"Message"}
title=${2:-"Notification"} title=${2:-"Notification"}
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"
hubcli="/usr/local/bin/hubcli"
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

View File

@@ -80,6 +80,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).

View File

@@ -83,6 +83,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 (AirWatch)
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