mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
appmgr: fix CA paths
This commit is contained in:
committed by
Aiden McClelland
parent
92c297648c
commit
218bae3b46
@@ -314,15 +314,26 @@ pub async fn write_lan_services(hidden_services: &ServicesMap) -> Result<(), Err
|
||||
&mut tokio::fs::File::open(
|
||||
"/root/agent/ca/intermediate/certs/embassy-int-ca.crt.pem",
|
||||
)
|
||||
.await?,
|
||||
.await
|
||||
.with_context(|e| {
|
||||
format!(
|
||||
"{}: /root/agent/ca/intermediate/certs/embassy-int-ca.crt.pem",
|
||||
e
|
||||
)
|
||||
})
|
||||
.with_code(crate::error::FILESYSTEM_ERROR)?,
|
||||
&mut *fullchain_file,
|
||||
)
|
||||
.await?;
|
||||
tokio::io::copy(
|
||||
&mut tokio::fs::File::open(
|
||||
"/root/agent/ca/certs/embassy-int-ca.crt.pem",
|
||||
"/root/agent/ca/certs/embassy-root-ca.cert.pem",
|
||||
)
|
||||
.await?,
|
||||
.await
|
||||
.with_context(|e| {
|
||||
format!("{}: /root/agent/ca/certs/embassy-root-ca.cert.pem", e)
|
||||
})
|
||||
.with_code(crate::error::FILESYSTEM_ERROR)?,
|
||||
&mut *fullchain_file,
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user