bitwarden: "ConditionPathExists" instead of "after"

pull/55/head
Alexander 2023-12-19 00:57:12 +04:00
parent 0ad2ffc30e
commit 69f84cdc2b
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ in
};
};
# NixOS upstream bug? Otherwise, backup-vaultwarden cannot find sqlite DB.
systemd.services.backup-vaultwarden.after = [ "vaultwarden.service" ];
systemd.services.backup-vaultwarden.before = lib.mkForce [ ];
systemd.services.backup-vaultwarden.unitConfig.ConditionPathExists =
"/var/lib/bitwarden_rs/db.sqlite3";
};
}