From 1b0fd61863a81626fae76bf18699c7b88043169b Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 3 Nov 2022 18:15:45 +0100 Subject: [PATCH] Make local passwords longer --- lib/setup-bridgehead-units.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup-bridgehead-units.sh b/lib/setup-bridgehead-units.sh index c5bb421..d258c0b 100755 --- a/lib/setup-bridgehead-units.sh +++ b/lib/setup-bridgehead-units.sh @@ -36,7 +36,7 @@ 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_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)" + generated_passwd="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 32)" log "INFO" "Your generated credentials are:\n user: $PROJECT\n password: $generated_passwd" echo -e "## Local Data Management Basic Authentication\n# User: $PROJECT\nLDM_PASSWORD=$generated_passwd" >> /etc/bridgehead/${PROJECT}.local.conf;