This commit is contained in:
eroncero
2025-07-18 09:54:46 +02:00
parent 1a76816275
commit 263f77418a
12 changed files with 46 additions and 28 deletions

View 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