Skip to content

Commit

Permalink
Merge pull request #25 from galaxyproject/mkdir
Browse files Browse the repository at this point in the history
Create folder if it is local
  • Loading branch information
natefoo authored Jan 19, 2021
2 parents 1507fbe + 4406188 commit fc1e5c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
- "{{ postgresql_backup_local_dir }}/bin"
- "{{ postgresql_backup_active_dir }}"

- name: Create backup output directory
file:
owner: postgres
group: postgres
mode: 0750
state: directory
path: "{{ postgresql_backup_dir }}"
when: postgresql_backup_dir[0] == '/'

- name: Install backup scripts
template:
src: "{{ item }}.j2"
Expand Down

0 comments on commit fc1e5c2

Please sign in to comment.