Last active
April 8, 2017 08:27
-
-
Save furdarius/59a534c5e5886d034b3ed96d0beae065 to your computer and use it in GitHub Desktop.
Upgrade DataGrip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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