Marcel Kapfer
c193ab546d
The installation process already runs with root privileges. See also https://gitlab.com/mmk2410/intellij-idea-community/-/issues/4
21 lines
412 B
Bash
21 lines
412 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd /opt/
|
|
|
|
## Extract the package
|
|
tar xf /opt/ideaIU-2021.2.2.tar.gz
|
|
|
|
## Rename the directory
|
|
mv /opt/idea-IU-* /opt/intellij-idea-ultimate
|
|
|
|
## Remove the tar.gz package
|
|
rm /opt/ideaIU-2021.2.2.tar.gz
|
|
|
|
## Install the .desktop file, if necessary
|
|
if [ -x "/usr/bin/desktop-file-install" ]; then
|
|
desktop-file-install /usr/share/applications/intellij-idea-ultimate.desktop
|
|
fi
|
|
|
|
##DEBHELPER##
|