From 729d4e2c1e242798c80d57ef360f169fb435644c Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 3 Nov 2022 17:29:52 +0100 Subject: [PATCH] Check against LDM_PASSWORD --- bridgehead | 2 +- lib/setup-bridgehead-units.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bridgehead b/bridgehead index 3297c65..babfaab 100755 --- a/bridgehead +++ b/bridgehead @@ -59,13 +59,13 @@ if [ -f "$PROJECT/docker-compose.override.yml" ]; then fi detectCompose -setLdmPassword case "$ACTION" in start) hc_send log "Bridgehead $PROJECT startup: Checking requirements ..." checkRequirements hc_send log "Bridgehead $PROJECT startup: Requirements checked out. Now starting bridgehead ..." + setLdmPassword exec $COMPOSE -f ./$PROJECT/docker-compose.yml $OVERRIDE up --abort-on-container-exit ;; stop) diff --git a/lib/setup-bridgehead-units.sh b/lib/setup-bridgehead-units.sh index 34ab6dc..c5bb421 100755 --- a/lib/setup-bridgehead-units.sh +++ b/lib/setup-bridgehead-units.sh @@ -34,7 +34,7 @@ bridgehead ALL= NOPASSWD: BRIDGEHEAD${PROJECT^^} EOF # TODO: Determine wether this should be located in setup-bridgehead (triggered through bridgehead install) or in update bridgehead (triggered every hour) -if [ -z "$LDM_LOGIN" ]; then +if [ -z "$LDM_PASSWORD" ]; then log "INFO" "Now generating a password for the local data management. Please save the password for your ETL process!" generated_passwd="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"