Polished
This commit is contained in:
21
multi-php-fpm/project/entrypoint/start-php-fpm.sh
Normal file
21
multi-php-fpm/project/entrypoint/start-php-fpm.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Start each version listed in PHP_VERSIONS
|
||||
for version in $PHP_VERSIONS; do
|
||||
echo "Starting php$version-fpm..."
|
||||
service "php$version-fpm" start
|
||||
done
|
||||
|
||||
# Check if BUILDTIME_PHP_VER_INST is defined and not already in PHP_VERSIONS
|
||||
if [ -n "$BUILDTIME_PHP_VER_INST" ]; then
|
||||
case " $PHP_VERSIONS " in
|
||||
*" $BUILDTIME_PHP_VER_INST "*)
|
||||
echo "BUILDTIME_PHP_VER_INST ($BUILDTIME_PHP_VER_INST) already started."
|
||||
;;
|
||||
*)
|
||||
echo "Starting BUILDTIME_PHP_VER_INST (php$BUILDTIME_PHP_VER_INST-fpm)..."
|
||||
service "php$BUILDTIME_PHP_VER_INST-fpm" start
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
Reference in New Issue
Block a user