From 4504fb956ff8178c0a33a98438c2769700e5031d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 25 Feb 2021 15:58:31 -0500 Subject: [PATCH] feat: add service-action plugin trigger for link/unlink This can be used to track in alternate systems when a service is linked/unlinked from an app by implementing the custom trigger. --- common-functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common-functions b/common-functions index 44fc252..5b56933 100755 --- a/common-functions +++ b/common-functions @@ -466,6 +466,7 @@ service_link() { fi [[ -n "$SERVICE_QUERYSTRING" ]] && SERVICE_URL="${SERVICE_URL}?${SERVICE_QUERYSTRING}" config_set "$APP" "${ALIAS}_URL=$SERVICE_URL" + plugn trigger service-action link "$SERVICE" "$APP" } service_linked_apps() { @@ -783,6 +784,7 @@ service_unlink() { [[ -z ${LINK[*]} ]] && dokku_log_fail "Not linked to app $APP" config_unset "$APP" "${LINK[*]}" + plugn trigger service-action unlink "$SERVICE" "$APP" } service_version() {