Skip to content

Commit

Permalink
Do not create existing tmpdir (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDem0n committed Dec 16, 2016
1 parent 7ae975e commit 41fd825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postgres-appliance/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ def write_wale_command_environment(placeholders, overwrite, provider):
os.path.join(placeholders['WALE_ENV_DIR'], 'GOOGLE_APPLICATION_CREDENTIALS'), overwrite)
else:
return
os.makedirs(placeholders['WALE_TMPDIR'])
if not os.path.exists(placeholders['WALE_TMPDIR'])
os.makedirs(placeholders['WALE_TMPDIR'])
write_file(placeholders['WALE_TMPDIR'], os.path.join(placeholders['WALE_ENV_DIR'], 'TMPDIR'), True)


Expand Down

0 comments on commit 41fd825

Please sign in to comment.