intellij-idea-ultimate/intellij-idea-ultimate_2021.2.2/debian/postinst
Marcel Kapfer 987662a7c4
Only extract downloaded current tar archive
The current postinst has the bug that all tar archives store in /opt
that begin with ideaIC- are extracted. While this issue will not appear
to most users it may still be a problem to aborted installations which
are only continued after an update.

See also https://gitlab.com/mmk2410/intellij-idea-community/-/issues/5
2021-10-01 17:53:28 +00:00

21 lines
432 B
Bash

#!/bin/bash
set -e
cd /opt/
## Extract the package
sudo tar xf /opt/ideaIU-2021.2.2.tar.gz
## Rename the directory
sudo mv /opt/idea-IU-* /opt/intellij-idea-ultimate
## Remove the tar.gz package
sudo rm /opt/ideaIU-2021.2.2.tar.gz
## 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##