A bunch of things

This commit is contained in:
eroncero
2025-08-15 19:11:21 +02:00
parent 89e2780710
commit 1270dad444
16 changed files with 35 additions and 12 deletions

View File

@@ -0,0 +1,22 @@
#!/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