#!/bin/bash set -e set -a # export everything in the config for later use by envsubst . $1 # source the apps.config file with then env vars # substitute template with env var to insert webhooks secret envsubst < all-apps/instance-control/hooks/hooks.json.tmpl > all-apps/instance-control/hooks/hooks.json