Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-16 04:12:53 +01:00
Remove the unnecessary check for sqlite
The binary we use is called `sqlite3` so no need to check for other name variants as we won't use those anyways.
Dieser Commit ist enthalten in:
Ursprung
acdd42935b
Commit
d6e9af909b
1 geänderte Dateien mit 1 neuen und 5 gelöschten Zeilen
|
@ -37,11 +37,7 @@ pub fn routes() -> Vec<Route> {
|
||||||
}
|
}
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref CAN_BACKUP: bool = cfg!(feature = "sqlite") &&
|
static ref CAN_BACKUP: bool = cfg!(feature = "sqlite") && Command::new("sqlite3").arg("-version").status().is_ok();
|
||||||
(
|
|
||||||
Command::new("sqlite").arg("-version").status().is_ok() ||
|
|
||||||
Command::new("sqlite3").arg("-version").status().is_ok()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[get("/")]
|
#[get("/")]
|
||||||
|
|
Laden …
In neuem Issue referenzieren