mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/vaultwarden: fix race with backup
when vaultwarden starts while backup-vaultwarden.service is running, it fails because the sqlite database is locked
This commit is contained in:
parent
7d009061c9
commit
7160e94e27
1 changed files with 2 additions and 0 deletions
|
@ -210,6 +210,8 @@ ADMIN_TOKEN=...copy-paste a unique generated secret token here...
|
|||
BACKUP_FOLDER = cfg.backupDir;
|
||||
};
|
||||
path = with pkgs; [ sqlite ];
|
||||
# if both services are started at the same time, vaultwarden fails with "database is locked"
|
||||
before = [ "vaultwarden.service" ];
|
||||
serviceConfig = {
|
||||
SyslogIdentifier = "backup-vaultwarden";
|
||||
Type = "oneshot";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue