From 29926031aee9cc4dc7021b8e68c52e6143624bc7 Mon Sep 17 00:00:00 2001 From: damocles Date: Mon, 1 Jun 2026 16:47:28 +0200 Subject: [PATCH] fix(702): replace systemd_run_machine with reload_gateway_nginx in priv_client --- hive-c0re/src/priv_client.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/hive-c0re/src/priv_client.rs b/hive-c0re/src/priv_client.rs index 357d8723..51a3b646 100644 --- a/hive-c0re/src/priv_client.rs +++ b/hive-c0re/src/priv_client.rs @@ -111,14 +111,11 @@ pub async fn chmod(path: &Path, mode: u32) -> Result<()> { Ok(()) } -/// Run a command inside a machine container via `systemd-run --machine`. -pub async fn systemd_run_machine(machine: &str, cmd: Vec) -> Result<(String, String)> { - let resp = call(&PrivRequest::SystemdRunMachine { - machine: machine.to_owned(), - cmd, - }) - .await?; - check(resp) +/// Reload nginx inside `hive-gateway` via `systemd-run --machine`. +pub async fn reload_gateway_nginx() -> Result<()> { + let resp = call(&PrivRequest::ReloadGatewayNginx).await?; + check(resp)?; + Ok(()) } fn check(resp: PrivResponse) -> Result<(String, String)> {