intellij-idea-ultimate/intellij-idea-ultimate_2017.1.1/debian/postinst
Marcel Kapfer (mmk2410) 28df443a21 Upstream releaes 2017.1.1
- Addressed T214: Download over HTTP
 - Addressed T230: No check for existing archives
2017-04-14 22:31:14 +02:00

21 lines
404 B
Bash

#!/bin/bash
set -e
cd /opt/
## Extract the package
sudo tar xf /opt/ideaIU-*
## Rename the directory
sudo mv /opt/idea-IU-* /opt/intellij-idea-ultimate
## Remove the tar.gz package
sudo rm /opt/ideaIU-*
## Install the .desktop file, if necessary
if [ -x "/usr/bin/desktop-file-install" ]; then
sudo desktop-file-install /usr/share/applications/intellij-idea-ultimate.desktop
fi
##DEBHELPER##