Upgrade python version for debian in test_apache2.sh

This commit is contained in:
Erica Portnoy 2020-08-14 14:22:12 -07:00
parent a618baec2b
commit 3a435350a7

View file

@ -12,6 +12,14 @@ then
# For apache 2.4, set up ServerName
sudo sed -i '/ServerName/ s/#ServerName/ServerName/' $CONFFILE
sudo sed -i '/ServerName/ s/www.example.com/'$PUBLIC_HOSTNAME'/' $CONFFILE
# Upgrade python version
sudo apt install -y make git zlib1g-dev
curl https://pyenv.run | bash
export PATH="/home/admin/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
pyenv install 3.8.5
pyenv global 3.8.5
elif [ "$OS_TYPE" = "centos" ]
then
CONFFILE=/etc/httpd/conf/httpd.conf