Create meta directory in server (or else sqlite fails)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Alex 2022-06-07 19:11:11 +02:00
parent 1e4814568b
commit e682478d75
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -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");