[ubuntu] Unify approach to /etc/environment (#8904)

* [ubuntu] Unify approach to /etc/environment

* [ubuntu] fix typo in XDG_CONFIG_HOME name
This commit is contained in:
Shamil Mubarakshin
2023-11-28 15:19:44 +01:00
committed by GitHub
parent da1c04b81a
commit 435ba67550
17 changed files with 78 additions and 46 deletions

View File

@@ -4,6 +4,9 @@
## Desc: Install Leiningen
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/etc-environment.sh
LEIN_BIN=/usr/local/bin/lein
curl -fsSL https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > $LEIN_BIN
chmod 0755 $LEIN_BIN
@@ -13,7 +16,7 @@ export LEIN_HOME=/usr/local/lib/lein
lein
LEIN_JAR=$(find $LEIN_HOME -name "leiningen-*-standalone.jar")
echo "LEIN_JAR=$LEIN_JAR" | tee -a /etc/environment
echo "LEIN_HOME=$LEIN_HOME" | tee -a /etc/environment
setEtcEnvironmentVariable "LEIN_JAR" "${LEIN_JAR}"
setEtcEnvironmentVariable "LEIN_HOME" "${LEIN_HOME}"
invoke_tests "Tools" "Leiningen"