2024-02-05 23:20:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-02-06 00:00:58 +00:00
|
|
|
if [ ! -f /usr/bin/php ]; then
|
|
|
|
ln -s /usr/bin/php83 /usr/bin/php
|
|
|
|
fi
|
|
|
|
|
2024-02-05 23:20:42 +00:00
|
|
|
# run scripts in /entrypoint.d/
|
|
|
|
if [ -d /entrypoint.d ]; then
|
|
|
|
echo "[-] Calling entrypoint scripts..."
|
|
|
|
for filename in /entrypoint.d/*.sh; do
|
|
|
|
echo " -> $filename"
|
|
|
|
if ! sh "$filename"; then exit 1; fi
|
|
|
|
done
|
|
|
|
else
|
|
|
|
echo "[!] No scripts matching *.sh found in /entrypoint.d"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# run framework setups
|
|
|
|
if [ -d /scripts/frameworks ]; then
|
|
|
|
echo "[-] Calling framework setup scripts..."
|
|
|
|
for filename in /scripts/frameworks/*.sh; do
|
|
|
|
sh "$filename" && break
|
|
|
|
done
|
|
|
|
else
|
|
|
|
echo "[!] No scripts matching *.sh found in /scripts/frameworks"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# pass off to supervisor
|
|
|
|
echo "[-] Spawning supervisor"
|
|
|
|
exec /usr/bin/supervisord -n -c /etc/supervisord.conf
|