Skip to content

Commit

Permalink
Fix docker issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderdw authored and dennissiemensma committed Feb 12, 2022
1 parent 8f9f495 commit 35eb0d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dsmr_backup/services/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def create_full(folder: str) -> str:
db_settings['NAME'],
]
backup_process = subprocess.Popen(command, env={
**os.environ,
'PGPASSWORD': db_settings['PASSWORD']
},
stdout=open(backup_file, 'w') # pragma: no cover
Expand Down Expand Up @@ -161,6 +162,7 @@ def create_partial(folder: str, models_to_backup: Iterable) -> str: # pragma: n
backup_process = subprocess.Popen(
command,
env={
**os.environ,
'PGPASSWORD': db_settings['PASSWORD']
},
stdout=open(backup_file, 'w'),
Expand Down

0 comments on commit 35eb0d6

Please sign in to comment.