1
0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2024-11-14 06:52:41 +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.
This commit is contained in:
Miro Prasil 2019-10-01 10:40:22 +01:00
parent acdd42935b
commit d6e9af909b

View File

@ -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("/")]