32 lines
765 B
Bash
Raw Normal View History

2024-02-06 00:20:42 +01:00
#!/bin/sh
2024-02-06 01:00:58 +01:00
if [ ! -f /usr/bin/php ]; then
ln -s /usr/bin/php83 /usr/bin/php
fi
2024-02-06 00:20:42 +01: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
2024-02-06 01:31:34 +01:00
cd /application
2024-02-06 00:20:42 +01:00
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