source/projects/activitypub_relay/docker_relay.sh

14 lines
283 B
Bash
Raw Normal View History

#!/usr/bin/env sh
# A launcher script for the dockerized relay
2022-11-27 03:05:35 +00:00
set -e
# 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
fi
# Then run the blame thing
2022-11-27 03:05:35 +00:00
exec python3 -m "relay" -c "/data/config.yml" "${@:-run}"