From 52ad8d9d88f8bc061982fe5c85c39295e174ddf5 Mon Sep 17 00:00:00 2001 From: Mike Matter Date: Mon, 9 May 2022 11:40:28 -0500 Subject: [PATCH 1/4] Adding Workspace ONE support --- Installomator.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Installomator.sh b/Installomator.sh index 3f64473..d20ff44 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -367,10 +367,13 @@ displaydialogContinue() { # $1: message $2: title displaynotification() { # $1: message $2: title message=${1:-"Message"} title=${2:-"Notification"} + hubcli="/usr/local/bin/hubcli" manageaction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action" if [[ -x "$manageaction" ]]; then "$manageaction" -message "$message" -title "$title" + elif [[ -x "$hubcli" ]]; then + sudo "$hubcli" notify -t "$title" -i "$message" -c "Dismiss" else runAsUser osascript -e "display notification \"$message\" with title \"$title\"" fi @@ -4837,6 +4840,11 @@ case $LOGO in LOGO="/Library/Intune/Microsoft Intune Agent.app/Contents/Resources/AppIcon.icns" if [[ -z $MDMProfileName ]]; then; MDMProfileName="Management Profile"; fi ;; + ws1) + # Mosyle Business + LOGO="/Applications/Workspace ONE Intelligent Hub.app/Contents/Resources/AppIcon.icns" + if [[ -z $MDMProfileName ]]; then; MDMProfileName="Device Manager"; fi + ;; esac if [[ ! -a "${LOGO}" ]]; then if [[ $(sw_vers -buildVersion) > "19" ]]; then From 4f3b130b0462a7081a8321f763718298695ce514 Mon Sep 17 00:00:00 2001 From: Mike Matter Date: Mon, 9 May 2022 11:50:27 -0500 Subject: [PATCH 2/4] Adding Workspace ONE support (fixing comment) --- Installomator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Installomator.sh b/Installomator.sh index d20ff44..6a6f725 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -4841,7 +4841,7 @@ case $LOGO in if [[ -z $MDMProfileName ]]; then; MDMProfileName="Management Profile"; fi ;; ws1) - # Mosyle Business + # Workspace ONE LOGO="/Applications/Workspace ONE Intelligent Hub.app/Contents/Resources/AppIcon.icns" if [[ -z $MDMProfileName ]]; then; MDMProfileName="Device Manager"; fi ;; From 5477c5ccfe12250aac4f50b83f1e39221fa6e67f Mon Sep 17 00:00:00 2001 From: Mike Matter Date: Mon, 9 May 2022 12:02:50 -0500 Subject: [PATCH 3/4] Adding WS1 support (Blocking app dialogue) --- Installomator.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Installomator.sh b/Installomator.sh index 6a6f725..a520aed 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -81,6 +81,7 @@ LOGO=appstore # - mosylem Mosyle Manager (Education) # - addigy Addigy # - 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. # Like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"' # (spaces have to be escaped). From 9e0bfd5818d426f85016227516bf5c99bcf841a5 Mon Sep 17 00:00:00 2001 From: Mike Matter Date: Wed, 11 May 2022 11:33:33 -0500 Subject: [PATCH 4/4] WS1 support (remove sudo) Removing sudo from notify command. --- Installomator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Installomator.sh b/Installomator.sh index a520aed..a6b4bb3 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -374,7 +374,7 @@ displaynotification() { # $1: message $2: title if [[ -x "$manageaction" ]]; then "$manageaction" -message "$message" -title "$title" elif [[ -x "$hubcli" ]]; then - sudo "$hubcli" notify -t "$title" -i "$message" -c "Dismiss" + "$hubcli" notify -t "$title" -i "$message" -c "Dismiss" else runAsUser osascript -e "display notification \"$message\" with title \"$title\"" fi