Skip to content

Instantly share code, notes, and snippets.

@furdarius
Last active April 8, 2017 08:27
Show Gist options
  • Select an option

  • Save furdarius/59a534c5e5886d034b3ed96d0beae065 to your computer and use it in GitHub Desktop.

Select an option

Save furdarius/59a534c5e5886d034b3ed96d0beae065 to your computer and use it in GitHub Desktop.
Upgrade DataGrip
#!/bin/bash -e
# IMPORTANT. Run with sudo!
# Early Access program: https://www.jetbrains.com/datagrip/nextversion/
echo -n "Please enter the DataGrip download url (eg https://download.jetbrains.com/datagrip/datagrip-171.3780.53.tar.gz): "
read url
# Download file from url
echo "Downloading DataGrip to ~/Downloads"
cd ~/Downloads
wget ${url} --no-check-certificate
tar -xzf ~/Downloads/datagrip*.tar.gz
rm -rf ~/Downloads/datagrip*.tar.gz
# Remove old datagrip
echo "Removing old DataGrip"
rm -rf /opt/datagrip
# Copy new datagrip
echo "Copying new DataGrip"
mv ~/Downloads/DataGrip*/ /opt/datagrip
# Finish
echo "New DataGrip has been installed!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment