source/projects/activitypub_relay/docker_relay.sh

12 lines
231 B
Bash
Raw Normal View History

#!/usr/bin/env sh
# A launcher script for the dockerized relay
# First do config init if needed
if [ ! -f "/data/config.yml" ]; then
python3 -m "relay" setup
fi
# Then run the blame thing
exec python3 -m "relay" "${@:-run}"