bitwarden: "ConditionPathExists" instead of "after"
parent
0ad2ffc30e
commit
69f84cdc2b
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue