- #!/bin/sh
- set -eu
- PY=/opt/hermes/.venv/bin/python
- TARGET=/opt/hermes/plugins/platforms/matrix/adapter.py
- test -f "$TARGET" || { echo "Fmode: unsupported image; Matrix adapter missing" >&2; exit 12; }
- mkdir -p /opt/data/logs
- "$PY" /opt/data/.fmode-media-patch/patch_spec.py --apply >>/opt/data/logs/media-patch-entry.log 2>&1
- if [ "$#" -eq 0 ]; then set -- gateway run; fi
- exec /opt/hermes/docker/entrypoint-dispatch.sh "$@"
|