mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-05-16 12:25:11 +00:00
e4c02b96cd
* add .pre-commit-config.yaml Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info> * .editorconfig: decrease indent size for text * .pre-commit-config.yaml: remove prettier Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info> * .editorconfig consistency. * .pre-commit-config.yaml: restore sample hooks * .editorconfig: disable indent_size for LICENSE & NOTICE * pre-commit run --all-files * tsconfig.json: tabs to spaces * .pre-commit-config.yaml: update editorconfig-checker to 2.7.2 * .editorconfig: disable indent_size for markdown * mjolnir-entrypoint.sh: retab * .editorconfig: also exclude json from indent checking * test/nginx.conf: retab * test/integration/commands/redactCommandTest.ts: remove leading space * retab or remove leading whitespaces for the rest of the files * src/appservice/datastore.ts remove newlines * test/integration/commands/roomTest.ts: remove leading space. --------- Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info> Co-authored-by: gnuxie <Gnuxie@protonmail.com>
15 lines
781 B
Bash
Executable File
15 lines
781 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This is used as the entrypoint in the mjolnir Dockerfile.
|
|
# We want to transition away form people running the image without specifying `bot` or `appservice`.
|
|
# So if eventually cli arguments are provided for the bot version, we want this to be the opportunity to move to `bot`.
|
|
# Therefore using arguments without specifying `bot` (or appservice) is unsupported.
|
|
# We maintain the behaviour where if it looks like someone is providing an executable to `docker run`, then we will execute that instead.
|
|
# This aids configuration and debugging of the image if for example node needed to be started via another method.
|
|
case "$1" in
|
|
bot) shift; set -- node /mjolnir/index.js "$@";;
|
|
appservice) shift; set -- node /mjolnir/appservice/cli.js "$@";;
|
|
esac
|
|
|
|
exec "$@";
|