intellij-idea-community/intellij-idea-community_2017.3.3/debian/postinst

22 lines
406 B
Text
Raw Normal View History

2015-12-08 11:55:30 +01:00
#!/bin/bash
2017-02-02 13:58:56 +01:00
set -e
2015-12-08 11:55:30 +01:00
cd /opt/
## Extract the package
sudo tar xf /opt/ideaIC-*
## Rename the directory
sudo mv /opt/idea-IC-* /opt/intellij-idea-community
## Remove the tar.gz package
sudo rm /opt/ideaIC-*
## Install the .desktop file, if necessary
if [ -x "/usr/bin/desktop-file-install" ]; then
2017-02-02 13:58:56 +01:00
sudo desktop-file-install /usr/share/applications/intellij-idea-community.desktop
fi
2017-02-02 13:58:56 +01:00
##DEBHELPER##