update.sh: Remove unused paths (#1723)

As php 7.x is not used anymore, these can be removed.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
Manuel Rüger 2022-03-28 17:30:37 +02:00 committed by GitHub
parent 97f99dbfdb
commit 71f4a94464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 14 deletions

View File

@ -110,22 +110,10 @@ function create_variant() {
s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g;
s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/g;
s/%%CRONTAB_INT%%/'"$crontabInt"'/g;
\@docker-php-ext-configure gmp --with-gmp@d;
\@/usr/include/gmp.h@d;
' "$dir/Dockerfile"
case "$phpVersion" in
7.4|8.0 )
sed -ri -e '
\@docker-php-ext-configure gmp --with-gmp@d;
\@/usr/include/gmp.h@d;
' "$dir/Dockerfile"
;;
7.3 )
sed -ri -e '
s@gd --with-freetype --with-jpeg --with-webp@gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr@g;
' "$dir/Dockerfile"
;;
esac
# Copy the shell scripts
for name in entrypoint cron; do
cp "docker-$name.sh" "$dir/$name.sh"