16 lines
333 B
Bash
16 lines
333 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
supercronic /etc/crontab &
|
|
|
|
if command -v apache2-foreground >/dev/null 2>&1; then
|
|
exec docker-php-entrypoint apache2-foreground
|
|
fi
|
|
|
|
if command -v frankenphp >/dev/null 2>&1; then
|
|
exec frankenphp run --config /etc/caddy/Caddyfile
|
|
fi
|
|
|
|
echo "Impossible de déterminer le serveur PHP à démarrer." >&2
|
|
exit 1 |