v0.27.1
This commit is contained in:
1 parent
3a2eb4fe79
commit
e0194fbaff
63 files changed
+1553
-379
No files matched your search
@@ -396,6 +396,35 @@ async fn run(
|
||||
} else {
|
||||
println!(" Sign in with your administrator account.");
|
||||
}
|
||||
let certificate_runtime = state.acme.runtime_view();
|
||||
let runtime_pending = matches!(certificate_runtime.status, "checking" | "initializing");
|
||||
let component_state = |available: bool| {
|
||||
if available {
|
||||
"available"
|
||||
} else if runtime_pending {
|
||||
"checking"
|
||||
} else {
|
||||
"unavailable"
|
||||
}
|
||||
};
|
||||
let managed_python_directory = certificate_runtime
|
||||
.managed_directory
|
||||
.clone()
|
||||
.unwrap_or_else(|| data_dir.join("acme-python").to_string_lossy().into_owned());
|
||||
println!(" Source: https://git.linuxiarz.pl/gru/RustProxy");
|
||||
println!(" Packages: https://rustproxy.linuxiarz.pl/");
|
||||
println!(
|
||||
" Python: {} (ACME mode: {}, pip: {}, Certbot: {}; managed env: {})",
|
||||
component_state(certificate_runtime.python),
|
||||
if runtime_pending {
|
||||
"preparing"
|
||||
} else {
|
||||
certificate_runtime.mode
|
||||
},
|
||||
component_state(certificate_runtime.pip),
|
||||
component_state(certificate_runtime.certbot),
|
||||
managed_python_directory
|
||||
);
|
||||
println!(" Data: {}\n Stop: Ctrl+C\n", data_dir.display());
|
||||
if state
|
||||
.active_listeners
|
||||
|
||||
Reference in new issue
Block a user