Add ondrej's PPA on focal

This commit is contained in:
Shivam Mathur 2020-07-03 15:18:11 +05:30
parent be3ee05178
commit 988cef62da
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -238,6 +238,10 @@ existing_version=$(php-config --version 2>/dev/null | cut -c 1-3)
# Setup PHP
step_log "Setup PHP"
sudo mkdir -p /var/run /run/php
. /etc/lsb-release
if [ "$DISTRIB_RELEASE" = "20.04" ]; then
LC_ALL=C.UTF-8 sudo apt-add-repository ppa:ondrej/php -y
fi
if [ "$existing_version" != "$version" ]; then
if [ ! -e "/usr/bin/php$version" ]; then