intellij-idea-community/intellij-idea-community_2017.1.1/debian/postinst
Marcel Kapfer 04b1bb4312 Upstream release 2017.1.1
- Addressing T214: Downloading over HTTP
 - Addressing T230: Not checking for existing archives
2017-04-14 22:05:20 +02:00

21 lines
406 B
Bash

#!/bin/bash
set -e
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
sudo desktop-file-install /usr/share/applications/intellij-idea-community.desktop
fi
##DEBHELPER##