From adfb9b5c8a2898cbf2e737a87f6861b4031a3c94 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 20 Apr 2020 09:00:05 +0200 Subject: [PATCH] Update to 2020-04-20 09:00 --- roles/bitwarden_rs/templates/post-backup.sh.j2 | 2 +- roles/bitwarden_rs/templates/pre-backup.sh.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/bitwarden_rs/templates/post-backup.sh.j2 b/roles/bitwarden_rs/templates/post-backup.sh.j2 index 3166c61..35286d4 100644 --- a/roles/bitwarden_rs/templates/post-backup.sh.j2 +++ b/roles/bitwarden_rs/templates/post-backup.sh.j2 @@ -1,4 +1,4 @@ #!/bin/bash -e rm -f {{ bitwarden_root_dir }}/backup/* -umount /home/lbkp/bitwarden +umount /home/lbkp/bitwarden_rs diff --git a/roles/bitwarden_rs/templates/pre-backup.sh.j2 b/roles/bitwarden_rs/templates/pre-backup.sh.j2 index db61879..95fa847 100644 --- a/roles/bitwarden_rs/templates/pre-backup.sh.j2 +++ b/roles/bitwarden_rs/templates/pre-backup.sh.j2 @@ -14,4 +14,4 @@ cp {{ bitwarden_root_dir }}/data/rsa* {{ bitwarden_root_dir }}/backup/ {% else %} sqlite3 {{ bitwarden_root_dir }}/data/db.sqlite3 ".backup '{{ bitwarden_root_dir }}/backup/db.sqlite3'" {% endif %} -mount -o bind,ro {{ bitwarden_root_dir }}/backup/ /home/lbkp/bitwarden_rs/ +mountpoint -q /home/lbkp/bitwarden_rs/ || mount -o bind,ro {{ bitwarden_root_dir }}/backup/ /home/lbkp/bitwarden_rs/