From 5b758cda263df0277dc90222d81fd01b191f01de Mon Sep 17 00:00:00 2001 From: x86dev Date: Thu, 6 Jul 2017 23:59:35 +0200 Subject: [PATCH] Added 50-php in root/etc/cont-init.d to make sure to have a defined set of PHP binaries in case the (Alpine) package maintainer(s) changed the binary names. --- root/etc/cont-init.d/50-php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 root/etc/cont-init.d/50-php diff --git a/root/etc/cont-init.d/50-php b/root/etc/cont-init.d/50-php new file mode 100644 index 0000000..bbbf57d --- /dev/null +++ b/root/etc/cont-init.d/50-php @@ -0,0 +1,11 @@ +#!/usr/bin/with-contenv sh + +# Make sure to have a defined set of PHP binaries, +# regardless of how the package maintainer(s) named those. +if [ ! -f /usr/bin/php ]; then + ln -s /usr/bin/php5 /usr/bin/php +fi + +if [ ! -f /usr/bin/php-fpm ]; then + ln -s /usr/bin/php-fpm5 /usr/bin/php-fpm +fi