mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-18 07:46:45 +00:00
Remove ppa:ondrej/php from the list of apt repositories (#1104)
* Remove ppa:ondrej/php from the list of apt repositories * Add documentation and fixes * fix documentation Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
This commit is contained in:
@@ -28,3 +28,15 @@ function DocumentInstalledItem {
|
|||||||
function DocumentInstalledItemIndent {
|
function DocumentInstalledItemIndent {
|
||||||
WriteItem " - $1"
|
WriteItem " - $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function AddBlockquote {
|
||||||
|
WriteItem "> $1"
|
||||||
|
}
|
||||||
|
|
||||||
|
function StartCode {
|
||||||
|
WriteItem "``````"
|
||||||
|
}
|
||||||
|
|
||||||
|
function EndCode {
|
||||||
|
WriteItem "``````"
|
||||||
|
}
|
||||||
|
|||||||
@@ -134,5 +134,17 @@ for version in $php_versions; do
|
|||||||
DocumentInstalledItem "PHP $version ($(php$version --version | head -n 1))"
|
DocumentInstalledItem "PHP $version ($(php$version --version | head -n 1))"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# ubuntu 20.04 libzip-dev is libzip5 based and is not compatible libzip-dev of ppa:ondrej/php
|
||||||
|
# see https://github.com/actions/virtual-environments/issues/1084
|
||||||
|
if isUbuntu20 ; then
|
||||||
|
rm /etc/apt/sources.list.d/ondrej-ubuntu-php-focal.list
|
||||||
|
apt-get update
|
||||||
|
AddBlockquote "To use ppa:ondrej/php APT repository On Ubuntu 20.04 it is necessary to add it to the APT sources"
|
||||||
|
StartCode
|
||||||
|
WriteItem apt-add-repository ppa:ondrej/php -y
|
||||||
|
WriteItem apt-get update
|
||||||
|
EndCode
|
||||||
|
fi
|
||||||
|
|
||||||
DocumentInstalledItem "Composer ($(composer --version))"
|
DocumentInstalledItem "Composer ($(composer --version))"
|
||||||
DocumentInstalledItem "PHPUnit ($(phpunit --version))"
|
DocumentInstalledItem "PHPUnit ($(phpunit --version))"
|
||||||
|
|||||||
Reference in New Issue
Block a user