139323146e
update to account for missing python3-venv package and updating PATH in script to run newly installed commands
30 lines
486 B
Bash
Executable file
30 lines
486 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# exit on error
|
|
set -e
|
|
|
|
# detect os/ver for install type
|
|
os=""
|
|
if [[ -f /etc/os-release ]]; then
|
|
. /etc/os-release
|
|
os=${ID}
|
|
fi
|
|
|
|
echo "installing CORE for ${os}"
|
|
case ${os} in
|
|
"ubuntu")
|
|
sudo apt install -y python3-pip python3-venv
|
|
;;
|
|
"centos")
|
|
sudo yum install -y python3-pip
|
|
;;
|
|
*)
|
|
echo "unknown OS ID ${os} cannot install"
|
|
;;
|
|
esac
|
|
|
|
python3 -m pip install --user pipx
|
|
python3 -m pipx ensurepath
|
|
export PATH=$PATH:~/.local/bin
|
|
pipx install invoke
|
|
inv install
|