services/templates/gotosocial/entrypoint.sh.gotmpl
Dan Anglin 3340ddc475
build: automation with Go and Mage
We shall now use Go and Mage to manage the Flow services. The templates
have been converted to Go templates, Mage has replaced Make and the
helper bash scripts have been rewritten in Go.
2023-02-12 20:59:55 +00:00

14 lines
434 B
Bash

#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Move the dynamic traefik config to the shared volume
if [ -f /flow/gts/tmp/traefik_gotosocial.yaml ]; then
mv /flow/gts/tmp/traefik_gotosocial.yaml {{ .Traefik.SharedMountPoint }}/dynamic/traefik_gotosocial.yaml
fi
mkdir -p {{ .GoToSocial.DataContainerDirectory }}/database
exec /gotosocial/gotosocial --config-path /flow/gts/config/config.yaml server start