mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 18:15:47 +00:00
Broke MQTT by reading example config from data/ instead of the real bind-mounted /app/config.json. Now checks app dir first.
15 lines
466 B
Bash
15 lines
466 B
Bash
#!/bin/sh
|
|
|
|
# Copy example config if no config.json exists at app root (not bind-mounted)
|
|
if [ ! -f /app/config.json ]; then
|
|
echo "[entrypoint] No config.json found, copying from config.example.json"
|
|
cp /app/config.example.json /app/config.json
|
|
fi
|
|
|
|
# theme.json: check data/ volume (admin-editable on host)
|
|
if [ -f /app/data/theme.json ]; then
|
|
ln -sf /app/data/theme.json /app/theme.json
|
|
fi
|
|
|
|
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
|