X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fci%2Fsetup%2Fsetup_php.sh;h=11449109cba65708d5657fa5215f5f0a32d756b4;hb=533d1a28e5b22a0508554194d776fbf5b48e0ded;hp=1a7c69c383b8c8ebeebe2e7adbbc8ae212dc8047;hpb=e6e1579cece03e00e0b0c931f43694c90357aa4f;p=plcapi.git diff --git a/tests/ci/setup/setup_php.sh b/tests/ci/setup/setup_php.sh index 1a7c69c3..11449109 100755 --- a/tests/ci/setup/setup_php.sh +++ b/tests/ci/setup/setup_php.sh @@ -37,6 +37,9 @@ if [ "${PHP_VERSION}" = default ]; then php${PHPSUFFIX}-mbstring \ php${PHPSUFFIX}-xdebug else + # on GHA runners ubuntu version, php 7.4 and 8.0 seem to be preinstalled. remove them if found + + DEBIAN_FRONTEND=noninteractive apt-get install -y language-pack-en-base software-properties-common LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php apt-get update @@ -66,7 +69,7 @@ fi if [ -f "/lib/systemd/system/php${PHPVER}-fpm.service" ]; then ln -s "/lib/systemd/system/php${PHPVER}-fpm.service" /lib/systemd/system/php-fpm.service if [ ! -f /.dockerenv ]; then - systemctl daeamon-reload + systemctl daemon-reload fi fi