Uptime Kuma: Fix db backup file causing app to not start.

This commit is contained in:
Viyurz 2024-03-16 18:58:40 +01:00
parent 1304ffd7b7
commit 23eebca05a
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -18,6 +18,13 @@
environment:
BORG_PASSCOMMAND: "cat {{ borg_passphrase_file }}"
# The kuma-backup.db file is owned by root which causes
# users['uptime_kuma'] to try to take ownership when it cannot.
- name: Delete temporary backup file
file:
path: "{{ volumes['uptime_kuma_datadir'] }}/kuma-backup.db"
state: absent
- name: Prune borg repository
command:
cmd: |