0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-02-02 09:38:26 +01:00

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

View file

@ -110,22 +110,10 @@ function create_variant() {
s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g; s/%%REDIS_VERSION%%/'"${pecl_versions[redis]}"'/g;
s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/g; s/%%IMAGICK_VERSION%%/'"${pecl_versions[imagick]}"'/g;
s/%%CRONTAB_INT%%/'"$crontabInt"'/g; s/%%CRONTAB_INT%%/'"$crontabInt"'/g;
\@docker-php-ext-configure gmp --with-gmp@d;
\@/usr/include/gmp.h@d;
' "$dir/Dockerfile" ' "$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 # Copy the shell scripts
for name in entrypoint cron; do for name in entrypoint cron; do
cp "docker-$name.sh" "$dir/$name.sh" cp "docker-$name.sh" "$dir/$name.sh"