Skip to content

Commit

Permalink
fix awk to get postgres pw from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
alcastronic committed Oct 15, 2023
1 parent a4da300 commit 97974de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elkserver/install-elkserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ if [ ${WHATTOINSTALL} = "full" ]; then
fi
else
echo "[*] Postgresql password in docker template already defined - skipping" | tee -a $LOGFILE
POSTGRES_PASSWORD=$(grep -E ^POSTGRES_PASSWORD= .env|awk -Fneo4j/ '{print $2}')
POSTGRES_PASSWORD=$(grep -E ^POSTGRES_PASSWORD= .env|awk -F= '{print $2}')
fi
# check if Postgres password is already set in bloodhound config as it can not be set through env.
# https://github.com/SpecterOps/BloodHound/issues/9
Expand Down

0 comments on commit 97974de

Please sign in to comment.