entry.sh 424 B

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