forked from lix-project/lix-installer
Trim fdesetup output, remove accidently committed SSL related settings (#403)
* Trim fdesetup output, remove accidently committed SSL related settings * More complete revert of accidental code * Fix a bad
This commit is contained in:
parent
8bb37f1bcf
commit
1718e0c428
|
@ -403,6 +403,7 @@ impl Action for ConfigureInitService {
|
|||
|
||||
#[tracing::instrument(level = "debug", skip_all)]
|
||||
async fn revert(&mut self) -> Result<(), ActionError> {
|
||||
#[cfg_attr(target_os = "macos", allow(unused_mut))]
|
||||
let mut errors = vec![];
|
||||
|
||||
match self.init {
|
||||
|
|
|
@ -119,7 +119,8 @@ impl Planner for Macos {
|
|||
.map_err(|e| PlannerError::Custom(Box::new(e)))?;
|
||||
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
if stdout == "true" {
|
||||
let stdout_trimmed = stdout.trim();
|
||||
if stdout_trimmed == "true" {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
|
|
|
@ -232,7 +232,6 @@ impl CommonSettings {
|
|||
let url;
|
||||
let nix_build_user_prefix;
|
||||
let nix_build_user_id_base;
|
||||
let ssl_cert_file;
|
||||
|
||||
use target_lexicon::{Architecture, OperatingSystem};
|
||||
match (Architecture::host(), OperatingSystem::host()) {
|
||||
|
@ -241,21 +240,18 @@ impl CommonSettings {
|
|||
url = NIX_X64_64_LINUX_URL;
|
||||
nix_build_user_prefix = "nixbld";
|
||||
nix_build_user_id_base = 30000;
|
||||
ssl_cert_file = None;
|
||||
},
|
||||
#[cfg(target_os = "linux")]
|
||||
(Architecture::X86_32(_), OperatingSystem::Linux) => {
|
||||
url = NIX_I686_LINUX_URL;
|
||||
nix_build_user_prefix = "nixbld";
|
||||
nix_build_user_id_base = 30000;
|
||||
ssl_cert_file = None;
|
||||
},
|
||||
#[cfg(target_os = "linux")]
|
||||
(Architecture::Aarch64(_), OperatingSystem::Linux) => {
|
||||
url = NIX_AARCH64_LINUX_URL;
|
||||
nix_build_user_prefix = "nixbld";
|
||||
nix_build_user_id_base = 30000;
|
||||
ssl_cert_file = None;
|
||||
},
|
||||
#[cfg(target_os = "macos")]
|
||||
(Architecture::X86_64, OperatingSystem::MacOSX { .. })
|
||||
|
@ -263,7 +259,6 @@ impl CommonSettings {
|
|||
url = NIX_X64_64_DARWIN_URL;
|
||||
nix_build_user_prefix = "_nixbld";
|
||||
nix_build_user_id_base = 300;
|
||||
ssl_cert_file = Some("/etc/ssl/certs/ca-certificates.crt".into());
|
||||
},
|
||||
#[cfg(target_os = "macos")]
|
||||
(Architecture::Aarch64(_), OperatingSystem::MacOSX { .. })
|
||||
|
@ -271,7 +266,6 @@ impl CommonSettings {
|
|||
url = NIX_AARCH64_DARWIN_URL;
|
||||
nix_build_user_prefix = "_nixbld";
|
||||
nix_build_user_id_base = 300;
|
||||
ssl_cert_file = Some("/etc/ssl/certs/ca-certificates.crt".into());
|
||||
},
|
||||
_ => {
|
||||
return Err(InstallSettingsError::UnsupportedArchitecture(
|
||||
|
@ -291,7 +285,7 @@ impl CommonSettings {
|
|||
proxy: Default::default(),
|
||||
extra_conf: Default::default(),
|
||||
force: false,
|
||||
ssl_cert_file,
|
||||
ssl_cert_file: Default::default(),
|
||||
#[cfg(feature = "diagnostics")]
|
||||
diagnostic_endpoint: Some("https://install.determinate.systems/nix/diagnostic".into()),
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue