#!/usr/bin/env bash set -euo 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_SHARED_MOUNT_POINT}/dynamic/traefik_gotosocial.yaml fi mkdir -p ${GTS_DATA_CONTAINER_DIR}/database exec /gotosocial/gotosocial --config-path /flow/gts/config/config.yaml server start