2022-03-18 18:01:47 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# entrypoint for scribe Docker image
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
if [ -z "$HUB_COMMAND" ]; then
|
|
|
|
echo "HUB_COMMAND env variable must be scribe, scribe-hub, or scribe-elastic-sync"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$HUB_COMMAND" in
|
2022-03-22 03:47:11 +01:00
|
|
|
scribe ) exec /home/lbry/.local/bin/scribe "$@" ;;
|
|
|
|
scribe-hub ) exec /home/lbry/.local/bin/scribe-hub "$@" ;;
|
|
|
|
scribe-elastic-sync ) exec /home/lbry/.local/bin/scribe-elastic-sync ;;
|
2022-03-18 18:01:47 +01:00
|
|
|
* ) "HUB_COMMAND env variable must be scribe, scribe-hub, or scribe-elastic-sync" && exit 1 ;;
|
|
|
|
esac
|