Modify how pg password is set in postgres pod (#1540)

Signed-off-by: Christian M. Adams <chadams@redhat.com>
This commit is contained in:
Christian Adams
2023-08-29 11:28:54 -04:00
committed by GitHub
parent 1dc64b551c
commit 7012a6acfc
2 changed files with 8 additions and 1 deletions

View File

@@ -76,7 +76,7 @@
trap 'end_keepalive \"$keepalive_file\" \"$keepalive_pid\"' EXIT SIGINT SIGTERM
echo keepalive_pid: $keepalive_pid
set -e -o pipefail
PGPASSWORD='{{ awx_old_postgres_pass }}' {{ pgdump }} | PGPASSWORD='{{ awx_postgres_pass }}' {{ pg_restore }}
PGPASSWORD=\"$PGPASSWORD_OLD\" {{ pgdump }} | PGPASSWORD=\"$POSTGRES_PASSWORD\" {{ pg_restore }}
set +e +o pipefail
echo 'Successful'
"