mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 08:42:57 -04:00
Upgrade python version for debian in test_apache2.sh
This commit is contained in:
parent
a618baec2b
commit
3a435350a7
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue