mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
Update UNIX command for installing certificates
This commit is contained in:
@@ -204,7 +204,7 @@ pub fn install_ca_files(path: &str) {
|
|||||||
if cfg!(target_os = "windows") {
|
if cfg!(target_os = "windows") {
|
||||||
run_command(format!("certutil -addstore -f \"ROOT\" {}\\ca\\cert.crt", path).to_string());
|
run_command(format!("certutil -addstore -f \"ROOT\" {}\\ca\\cert.crt", path).to_string());
|
||||||
} else {
|
} else {
|
||||||
run_command(format!("sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain {}/ca/certificate.crt", path).to_string());
|
run_command(format!("security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain {}/ca/cert.crt", path).to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("Installed certificate.");
|
println!("Installed certificate.");
|
||||||
|
|||||||
Reference in New Issue
Block a user