From aa2927955603cad802f22efa4cdeacfcf6b6164f Mon Sep 17 00:00:00 2001
From: jez04 <david.jezek@post.cz>
Date: Thu, 13 Feb 2025 14:51:57 +0100
Subject: [PATCH] fix: dir setting base on username and missing $LOCALHD
---
swi-install.sh | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/swi-install.sh b/swi-install.sh
index 463409a..457d1d7 100755
--- a/swi-install.sh
+++ b/swi-install.sh
@@ -550,15 +550,15 @@ function uninstallNetBeans(){
function installIdea(){
echo '============>Installing Idea IDE .....==========================================================================================================='
- downloadAndExtract /opt ideaIC-2024.3.2.2.tar.gz idea-IC-243.23654.189 idea-IC https://download-cdn.jetbrains.com/idea/ideaIC-2024.3.2.2.tar.gz
+ downloadAndExtract /opt ideaIC-2024.3.3.tar.gz idea-IC-243.24978.46 idea-IC https://download-cdn.jetbrains.com/idea/ideaIC-2024.3.3.tar.gz
createLauncher idea-IC "inteliJ IDEA" /opt/idea-IC/bin/idea /opt/idea-IC/bin/idea.png "inteliJ IDEA Comunity Edition" false jetbrains-idea-ce
cat <<EOF | sudo tee -a /opt/idea-IC/bin/idea.properties > /dev/null
# config for FEI labs
-idea.config.path=\${user.home}/.idea/configIC
-idea.system.path=/tmp/idea/systemIC
-idea.plugins.path=\$LOCALHD/idea/pluginsIC
-idea.log.path=/tmp/idea/logIC
+idea.config.path=\${user.home}/.idea/configIU
+idea.system.path=/tmp/idea-\${user.name}/systemIU
+idea.plugins.path=/media/localdata/idea/\${user.name}/pluginsIU
+idea.log.path=/tmp/idea-\${user.name}/logIU
EOF
cat <<EOF | sudo tee /etc/cron.d/idea-ultimate > /dev/null
@@ -571,16 +571,16 @@ EOF
function installIdeaUltimate(){
echo '============>Installing Idea Ultimate IDE .....==========================================================================================================='
- downloadAndExtract /opt ideaIU-2024.3.2.2.tar.gz idea-IU-243.23654.189 idea-IU https://download-cdn.jetbrains.com/idea/ideaIU-2024.3.2.2.tar.gz
+ downloadAndExtract /opt ideaIU-2024.3.3.tar.gz idea-IU-243.24978.46 idea-IU https://download-cdn.jetbrains.com/idea/ideaIU-2024.3.3.tar.gz
createLauncher idea-IU "Ultimate inteliJ IDEA" /opt/idea-IU/bin/idea /opt/idea-IU/bin/idea.png "Ultimate inteliJ IDEA Ultimate Edition" false jetbrains-idea
cat <<EOF | sudo tee -a /opt/idea-IU/bin/idea.properties > /dev/null
# config for FEI labs
idea.config.path=\${user.home}/.idea/configIU
-idea.system.path=/tmp/idea/systemIU
-idea.plugins.path=\$LOCALHD/idea/pluginsIU
-idea.log.path=/tmp/idea/logIU
+idea.system.path=/tmp/idea-\${user.name}/systemIU
+idea.plugins.path=/media/localdata/idea/\${user.name}/pluginsIU
+idea.log.path=/tmp/idea-\${user.name}/logIU
EOF
cat <<EOF | sudo tee /etc/cron.d/idea-ultimate > /dev/null
@@ -907,6 +907,7 @@ function installAll() {
function update2025() {
uninstallIdea
+ uninstallIdeaUltimate
installIdea
installIdeaUltimate
}
--
GitLab