From 62e0f742ba7a35943511ab098a4f8d942e7d294a Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Mon, 1 Mar 2021 13:49:29 -0700 Subject: [PATCH] appmgr: create app metadata dir explicitly --- appmgr/src/install.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/appmgr/src/install.rs b/appmgr/src/install.rs index 3bde46489..ea0c8961a 100644 --- a/appmgr/src/install.rs +++ b/appmgr/src/install.rs @@ -256,6 +256,19 @@ pub async fn install_v0( "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 {