cancel
Showing results for 
Search instead for 
Did you mean: 
Disclaimer
JUMPCLOUD EXPRESSLY DISCLAIMS ALL REPRESENTATIONS, WARRANTIES, CONDITIONS, AND LIABILITIES OF ANY KIND ARISING FROM OR RELATED TO THIRD-PARTY SOFTWARE, SCRIPTS, REPOSITORIES, AND APIS. JUMPCLOUD IS NOT REQUIRED TO SUPPORT ANY SUCH THIRD-PARTY MATERIALS AND ALL RISKS RELATED TO THIRD-PARTY MATERIALS ARE YOUR RESPONSIBILITY. PLEASE ALSO REVIEW THE JUMPCLOUD TOS.

Google Drive Mac Command

Fulgubbe
Novitiate III

Quick Command script to deploy Google Drive to Mac users thru Commands. I have it as a once a day trigger. If installed it will skip installation.

 

# Script to download, Silent Install and then clean up once installed Google Drive.
# Originally from Richard Hickson (https://richardhickson.com/blog/)
# Modified and updated by Fulgubbe

if [ -d /Applications/Google\ Drive.app/ ];
then
  echo "Already Installed"
  exit 0
else

#Make temp folder for downloads. 
mkdir "/tmp/gdrive/"; cd "/tmp/gdrive/"; 

#Download filestream. 
curl -L -o /tmp/gdrive/GoogleDrive.dmg "https://dl.google.com/drive-file-stream/GoogleDrive.dmg"; 

#Mount
hdiutil mount GoogleDrive.dmg; 

#Install
sudo installer -pkg /Volumes/Install\ Google\ Drive/GoogleDrive.pkg -target "/"; 

#UnMount
hdiutil unmount /Volumes/Install\ Google\ Drive/; 

#Tidy up 
sudo rm -rf /tmp/gdrive/
fi

 

1 REPLY 1

BenGarrison
JumpCloud Alumni
JumpCloud Alumni

This is pretty awesome! We will be soon having this live in a community repo here on the community site.