Skip to content

Commit 8b6a2a3

Browse files
Leons Petrazickisreevejd
authored andcommitted
pgpassword
1 parent 6f9aa31 commit 8b6a2a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gamora/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ back_up_postgresql() {
107107

108108
filename=postgresql_backup_${database:?}_$(date +"%Y%m%d_%H%M%S").archive.gz
109109

110-
# Assume existence of the PGPASSWORD environment variable
111110
monsoon "${NOTIFICATION_SETTINGS[@]}" backup postgresql \
112111
--output="${BACKUP_PATH:?}/${filename}" \
113112
--gzip \
114113
"--host=${PGHOST:?}" \
115114
"--port=${PGPORT:?}" \
116-
"--username=${PGUSER:?}"
115+
"--username=${PGUSER:?}" \
116+
"--password" "${PGPASSWORD:?}"
117117
log "Done: Taking PostgreSQL backup of ${database:?}"
118118

119119
upload_backup "${filename:?}"

0 commit comments

Comments
 (0)