1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00
haze/images/php/configure_gd.sh
2021-12-15 16:53:27 +01:00

19 lines
No EOL
398 B
Bash
Executable file

#!/bin/sh
PHP=$(echo "$PHP_VERSION" | cut -c -3)
echo "php $PHP"
if [ "$PHP" = "7.2" ] || [ "$PHP" = "7.3" ]; then
docker-php-ext-configure gd \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-freetype-dir
else
docker-php-ext-configure gd \
--enable-gd \
--with-jpeg \
--with-freetype
fi