From ba31975887687420b9f00db7692990b9601ed3ba Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Fri, 20 Dec 2024 12:00:29 +0100 Subject: [PATCH] Add gitCredentials to bridgehead script --- bridgehead | 4 ++++ lib/functions.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bridgehead b/bridgehead index d5d3a20..75d1498 100755 --- a/bridgehead +++ b/bridgehead @@ -166,6 +166,10 @@ case "$ACTION" in ;; postRun | postUpdate) ;; + gitCredentials) + loadVars >&2 + exec ./lib/gitpassword.sh $@ + ;; *) printUsage exit 1 diff --git a/lib/functions.sh b/lib/functions.sh index 9f3a43f..27fe758 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -53,7 +53,7 @@ checkOwner(){ } printUsage() { - echo "Usage: bridgehead start|stop|logs|docker-logs|is-running|update|install|uninstall|adduser|enroll PROJECTNAME" + echo "Usage: bridgehead start|stop|logs|docker-logs|is-running|update|install|uninstall|adduser|enroll|gitCredentials PROJECTNAME" echo "PROJECTNAME should be one of ccp|bbmri|cce|itcc|kr|dhki" }