#!/bin/sh

STRIPE_KEY_FILE=${STRIPE_KEY_FILE:-/private/kubernetes/stripe/privatekey}
STRIPE_KEY=`cat ${STRIPE_KEY_FILE}`

echo $STRIPE_KEY

SUBSCRIPTIONS_PG_DB_FILE=${SUBSCRIPTIONS_PG_DB_FILE:-/private/kubernetes/subscriptions/dsn}
SUBSCRIPTIONS_PG_DB=`cat ${SUBSCRIPTIONS_PG_DB_FILE}`

STRIPE_KEY="$STRIPE_KEY" SUBSCRIPTIONS_PG_DB="$SUBSCRIPTIONS_PG_DB" /subscriptions/subscriptionsd
