Skip to content
Snippets Groups Projects
Commit aa292795 authored by jez04's avatar jez04
Browse files

fix: dir setting base on username and missing $LOCALHD

parent 4e220ca7
No related merge requests found
......@@ -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
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment