appmgr: create app metadata dir explicitly

This commit is contained in:
Aiden McClelland
2021-03-01 13:49:29 -07:00
committed by Aiden McClelland
parent c42ff81a38
commit 62e0f742ba

View File

@@ -256,6 +256,19 @@ pub async fn install_v0<R: AsyncRead + Unpin + Send + Sync>(
"Package Name Does Not Match Expected"
);
}
log::info!(
"Creating metadata directory: {}/apps/{}",
crate::PERSISTENCE_DIR,
manifest.id
);
tokio::fs::create_dir_all(
Path::new(crate::PERSISTENCE_DIR)
.join("apps")
.join(&manifest.id),
)
.await?;
let (ip, tor_addr, tor_key) = crate::tor::set_svc(
&manifest.id,
crate::tor::NewService {