Skip to main content

Worklet: Install Dashlane client on Mac

  • August 19, 2019
  • 0 replies
  • 57 views

Nic-Automox

This worklet will check to see if Dashlane is installed and if it isn’t, will download and install it.

 

See this KB article for how to setup a worklet:

 

 

https://help.automox.com/hc/en-us/articles/5603324231700-Creating-a-Worklet

 

Evaluation Code:

 

 

#!/bin/bash



if [ -d "/Applications/Dashlane.app" ]; then

exit 0

else

exit 1

fi

 

Remediation Code:

 

 

#!/bin/bash



echo -e "Downloading Dashlane..."

curl -L -o "/tmp/Dashlane.dmg" https://www.dashlane.com/directdownload?platform=mac



echo -e "Installing Dashlane..."

hdiutil attach "/tmp/Dashlane.dmg" -nobrowse

ditto "/Volumes/Dashlane/Dashlane.app" "/Applications/Dashlane.app"



echo -e "Cleaning up..."

hdiutil detach "/Volumes/Dashlane"

rm -f "/tmp/Dashlane.dmg"

This topic has been closed for replies.