2022-11-27 01:13:56 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
# A launcher script for the dockerized relay
|
|
|
|
|
2022-11-27 03:05:35 +00:00
|
|
|
set -e
|
|
|
|
|
2022-11-27 01:13:56 +00:00
|
|
|
# First do config init if needed
|
|
|
|
if [ ! -f "/data/config.yml" ]; then
|
2022-11-27 03:05:35 +00:00
|
|
|
python3 -m "relay" -c "/data/config.yml" setup
|
2022-11-27 01:13:56 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Then run the blame thing
|
2022-11-27 03:05:35 +00:00
|
|
|
exec python3 -m "relay" -c "/data/config.yml" "${@:-run}"
|