mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 02:47:45 +08:00
feat(aether-proxy): 支持 Alpine 主机服务安装与 musl 发布 (#291)
* feat(aether-proxy): 支持 Alpine 主机服务安装与 musl 发布 * fix(aether-proxy): address alpine support review findings
This commit is contained in:
@@ -28,7 +28,7 @@ use crate::config::{
|
||||
|
||||
/// Outcome of the setup wizard, returned to the caller.
|
||||
pub enum SetupOutcome {
|
||||
/// Config saved; systemd service installed and started.
|
||||
/// Config saved and the selected host service was installed.
|
||||
ServiceInstalled,
|
||||
/// Config saved; no service -- caller should start the proxy directly.
|
||||
ReadyToRun(PathBuf),
|
||||
@@ -148,7 +148,7 @@ impl App {
|
||||
.into(),
|
||||
kind: FieldKind::Bool,
|
||||
required: false,
|
||||
help: "Install as systemd service (requires root) -- Enter to toggle",
|
||||
help: "Install as managed service (requires root) -- Enter to toggle",
|
||||
},
|
||||
Field {
|
||||
label: "Log Level",
|
||||
@@ -532,11 +532,8 @@ impl App {
|
||||
&& toggled == "true"
|
||||
&& !super::service::is_available()
|
||||
{
|
||||
self.message = Some((
|
||||
"requires root with systemd, use: sudo aether-proxy setup".into(),
|
||||
Instant::now(),
|
||||
true,
|
||||
));
|
||||
self.message =
|
||||
Some((super::service::unavailable_hint(), Instant::now(), true));
|
||||
} else {
|
||||
self.selected_field_mut().value = toggled.into();
|
||||
self.modified = true;
|
||||
|
||||
Reference in New Issue
Block a user