Worklet: Install Zoom on MacOS

  • 21 March 2021
  • 0 replies
  • 119 views

Userlevel 4

Hi all, here’s a Worklet to install Zoom on MacOS


Evaluation:


#!/bin/bash

#Checks whether zoom.us.app is installed in the /Applications directory, if not, Exit 1 code and goes to next step

if [[ -d "/Applications/zoom.us.app" ]]; then
echo "Zoom is installed."
exit 0
else
echo "Zoom is not installed."
exit 1
fi

Remediation:


#!/bin/bash

echo -e "Downloading Zoom..."

#Downloads Zoom pkg to /tmp/

curl -L -o "/tmp/zoompkg.pkg" https://zoom.us/client/latest/Zoom.pkg

echo -e "Installing Zoom..."

#Runs the installer

sudo installer -pkg /tmp/zoompkg.pkg -target /

echo -e "Cleaning up..."
rm -f "/tmp/zoompkg.pkg"

0 replies

Be the first to reply!

Reply