#!/usr/bin/env bash # Trigger: runs after every successful deploy, before nginx-vhosts rebuilds # the proxy config (plugins run in name order; google-auth < nginx-vhosts). # Belt-and-suspenders companion to nginx-pre-reload. set -eo pipefail [[ $DOKKU_TRACE ]] && set -x source "$(dirname "${BASH_SOURCE[0]}")/functions" APP="${1:-}" [[ -z "$APP" ]] && exit 0 fn-google-auth-app-enabled "$APP" || exit 0 fn-ga-write-conf "$APP" >/dev/null || true