2022-08-28 18:56:57 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
declare OPTS=""
|
|
|
|
|
|
|
|
OPTS="$OPTS -automigrate"
|
|
|
|
OPTS="$OPTS -listen $GOATCOUNTER_LISTEN"
|
|
|
|
OPTS="$OPTS -tls none"
|
|
|
|
OPTS="$OPTS -email-from $GOATCOUNTER_EMAIL"
|
|
|
|
OPTS="$OPTS -db $GOATCOUNTER_DB"
|
|
|
|
|
|
|
|
if [ -n "$GOATCOUNTER_SMTP" ]; then
|
|
|
|
OPTS="$OPTS -smtp $GOATCOUNTER_SMTP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$GOATCOUNTER_DEBUG" ]; then
|
|
|
|
OPTS="$OPTS -debug all"
|
|
|
|
fi
|
|
|
|
|
2022-09-04 19:24:44 +00:00
|
|
|
goatcounter serve $OPTS
|