mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2026-01-09 17:41:14 +00:00
Test: Better check to see if PHP-FPM is running
This commit is contained in:
@@ -28,6 +28,17 @@ if ! name="$( docker_run "${IMAGE}:${VERSION}-${FLAVOUR}" "${ARCH}" "-e DEBUG_EN
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if PHP-FPM is running
|
||||
print_h2 "Check if PHP-FPM is running"
|
||||
if ! check_php_fpm_running "${name}"; then
|
||||
docker_logs "${name}" || true
|
||||
docker_stop "${name}" || true
|
||||
echo "Failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Start Tests
|
||||
print_h2 "Testing..."
|
||||
if ! docker_exec "${name}" "apt update"; then
|
||||
docker_logs "${name}" || true
|
||||
docker_stop "${name}" || true
|
||||
|
||||
Reference in New Issue
Block a user