From c0e08df221201f066c17240904e25db9ff9af5e5 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 4 Feb 2021 16:41:34 -0700 Subject: [PATCH] appmgr: ignore AlreadyExists error --- appmgr/src/version/v0_2_9.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/appmgr/src/version/v0_2_9.rs b/appmgr/src/version/v0_2_9.rs index 4d95f3495..2c836de5e 100644 --- a/appmgr/src/version/v0_2_9.rs +++ b/appmgr/src/version/v0_2_9.rs @@ -23,7 +23,14 @@ impl VersionT for Version { crate::tor::ETC_NGINX_SERVICES_CONF, "/etc/nginx/sites-enabled/start9-services.conf", ) - .await?; + .await + .or_else(|e| { + if e.kind() == std::io::ErrorKind::AlreadyExists { + Ok(()) + } else { + Err(e) + } + })?; let svc_exit = std::process::Command::new("service") .args(&["nginx", "reload"]) .status()?;