source/projects/activitypub_relay/docker_relay.sh
Reid 'arrdem' McKenzie adaa3873ba Tweaks to working state
2022-11-26 20:05:35 -07:00

13 lines
283 B
Bash

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