aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-07 19:11:11 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-07 19:11:11 +0200
commite682478d753d63e34595d7a2b1e120cee658a3a8 (patch)
tree076f6f1c07418bb6d2bcf5b6919680feed165f8c
parent1e4814568b3be937b7ddc55686a6aa2a34c587f6 (diff)
downloadgarage-e682478d753d63e34595d7a2b1e120cee658a3a8.tar.gz
garage-e682478d753d63e34595d7a2b1e120cee658a3a8.zip
Create meta directory in server (or else sqlite fails)db-abstraction
-rw-r--r--src/garage/server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs
index 9a1aa975..697d3358 100644
--- a/src/garage/server.rs
+++ b/src/garage/server.rs
@@ -33,6 +33,7 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> {
info!("Opening database...");
let mut db_path = config.metadata_dir.clone();
+ std::fs::create_dir_all(&db_path).expect("Unable to create Garage meta data directory");
let db = match config.db_engine.as_str() {
"sled" => {
db_path.push("db");