#!/bin/bash

set -e

# first check if we're passing flags, if so
# prepend with sentry
if [ "${1:0:1}" = '-' ]; then
	set -- sentry "$@"
fi

case "$1" in
	celery|cleanup|config|createuser|devserver|django|export|help|import|init|plugins|queues|repair|shell|start|upgrade)
		set -- sentry "$@"
	;;
	generate-secret-key)
		exec sentry config generate-secret-key
	;;
esac

exec "$@"

#!/bin/bash

set -e

# first check if we're passing flags, if so
# prepend with sentry
if [ "${1:0:1}" = '-' ]; then
	set -- sentry "$@"
fi

case "$1" in
	celery|cleanup|config|createuser|devserver|django|export|help|import|init|plugins|queues|repair|shell|start|tsdb|upgrade)
		set -- sentry "$@"
	;;
	generate-secret-key)
		exec sentry config generate-secret-key
	;;
esac

exec "$@"

Add tsdb command to git build
Add tsdb command to git build
