This commit is contained in:
Vladimir Safonkin
2020-10-03 11:54:36 +03:00
parent 7df63a370d
commit fd2efe9c53
2 changed files with 8 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
################################################################################ ################################################################################
export PATH="$PATH:/opt/pipx_bin" # export PATH="$PATH:/opt/pipx_bin"
# Install yamlint # Install yamlint
pipx install yamllint pipx install yamllint

View File

@@ -6,6 +6,7 @@
set -e set -e
# Source the helpers for use with the script # Source the helpers for use with the script
source $HELPER_SCRIPTS/etc-environment.sh
source $HELPER_SCRIPTS/os.sh source $HELPER_SCRIPTS/os.sh
# Install Python, Python 3, pip, pip3 # Install Python, Python 3, pip, pip3
@@ -26,8 +27,12 @@ export PIPX_HOME=/opt/pipx
python3 -m pip install pipx python3 -m pip install pipx
python3 -m pipx ensurepath python3 -m pipx ensurepath
echo "PIPX_BIN_DIR=$PIPX_BIN_DIR" | tee -a /etc/environment # Update /etc/environment
echo "PIPX_HOME=$PIPX_HOME" | tee -a /etc/environment setEtcEnvironmentVariable "PIPX_BIN_DIR" $PIPX_BIN_DIR
setEtcEnvironmentVariable "PIPX_HOME" $PIPX_HOME
prependEtcEnvironmentPath /opt/pipx_bin
# echo "PIPX_BIN_DIR=$PIPX_BIN_DIR" | tee -a /etc/environment
# echo "PIPX_HOME=$PIPX_HOME" | tee -a /etc/environment
# Add pipx bin directory to path # Add pipx bin directory to path
# export PATH="$PATH:$PIPX_BIN_DIR" # export PATH="$PATH:$PIPX_BIN_DIR"