Skip to content

Commit

Permalink
Create sqlite storage dir when sqliteStorage flag is specified (PROJQ…
Browse files Browse the repository at this point in the history
…UAY-7478)
  • Loading branch information
harishsurf committed Aug 13, 2024
1 parent 6cd20c3 commit ad9e5b8
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@
retries: 5
delay: 5

- name: Check if the SQLite storage directory exists
stat:
path: "{{ sqlite_storage }}"
register: sqlite_storage_stat
when: sqlite_storage.startswith('/')

- name: Create necessary directory for sqlite data if it doesn't exist
become_method: containers.podman.podman_unshare
become: true
ansible.builtin.file:
mode: u+rwx
owner: 1001
path: "{{ sqlite_storage }}"
state: directory
when: sqlite_storage.startswith('/') and not sqlite_storage_stat.stat.exists

- name: Start Quay service
systemd:
name: quay-app.service
Expand Down

0 comments on commit ad9e5b8

Please sign in to comment.