diff --git a/.gitlab/build/docker_install.sh b/.gitlab/build/docker_install.sh index b65d58e13..5a09e427a 100644 --- a/.gitlab/build/docker_install.sh +++ b/.gitlab/build/docker_install.sh @@ -12,4 +12,4 @@ chmod +x /usr/local/bin/composer docker-php-ext-install pdo_mysql zip mysqli intl cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini -sed -i 's/error_reporting = E_ALL/ & ~E_DEPRECATED/g' /usr/local/etc/php/php.ini +awk '/^error_reporting = E_ALL/{print "error_reporting = E_ALL & ~E_DEPRECATED"; next}1' /usr/local/etc/php/php.ini > temp.ini && mv temp.ini /usr/local/etc/php/php.ini