From 3a435350a75e80149f6d4500abe3bf4daaa320be Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Fri, 14 Aug 2020 14:22:12 -0700 Subject: [PATCH] Upgrade python version for debian in test_apache2.sh --- tests/letstest/scripts/test_apache2.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/letstest/scripts/test_apache2.sh b/tests/letstest/scripts/test_apache2.sh index 6b065b099..16c370a4c 100755 --- a/tests/letstest/scripts/test_apache2.sh +++ b/tests/letstest/scripts/test_apache2.sh @@ -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