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.

This commit is contained in:
x86dev 2017-07-06 23:59:35 +02:00
parent b2fa06a9bf
commit 5b758cda26

View File

@ -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