source/projects/activitypub_relay/docker_relay.sh

11 lines
231 B
Bash

#!/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}"