mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix ca cert issue
This commit is contained in:
@@ -398,6 +398,20 @@ pub async fn init(
|
||||
Command::new("update-ca-certificates")
|
||||
.invoke(crate::ErrorKind::OpenSsl)
|
||||
.await?;
|
||||
if tokio::fs::metadata("/home/kiosk/profile").await.is_ok() {
|
||||
Command::new("certutil")
|
||||
.arg("-A")
|
||||
.arg("-n")
|
||||
.arg("StartOS Local Root CA")
|
||||
.arg("-t")
|
||||
.arg("TCu,Cuw,Tuw")
|
||||
.arg("-i")
|
||||
.arg("/usr/local/share/ca-certificates/startos-root-ca.crt")
|
||||
.arg("-d")
|
||||
.arg("/home/kiosk/fx-profile")
|
||||
.invoke(ErrorKind::OpenSsl)
|
||||
.await?;
|
||||
}
|
||||
load_ca_cert.complete();
|
||||
|
||||
load_wifi.start();
|
||||
@@ -422,6 +436,12 @@ pub async fn init(
|
||||
tokio::fs::remove_dir_all(&tmp_var).await?;
|
||||
}
|
||||
crate::disk::mount::util::bind(&tmp_var, "/var/tmp", false).await?;
|
||||
let downloading = cfg
|
||||
.datadir()
|
||||
.join(format!("package-data/archive/downloading"));
|
||||
if tokio::fs::metadata(&downloading).await.is_ok() {
|
||||
tokio::fs::remove_dir_all(&downloading).await?;
|
||||
}
|
||||
let tmp_docker = cfg
|
||||
.datadir()
|
||||
.join(format!("package-data/tmp/{CONTAINER_TOOL}"));
|
||||
|
||||
Reference in New Issue
Block a user