services/templates/gotosocial/entrypoint.sh.gotmpl

15 lines
434 B
Go Template
Raw Normal View History

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