From 3137387c0c72fcebf1f2bcee59f0dd442b40f68f Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 8 Jun 2023 16:56:09 -0600 Subject: [PATCH] only set static hostname --- backend/src/hostname.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/hostname.rs b/backend/src/hostname.rs index d2004a338..91e4ea71f 100644 --- a/backend/src/hostname.rs +++ b/backend/src/hostname.rs @@ -56,7 +56,8 @@ pub async fn get_current_hostname() -> Result { #[instrument(skip_all)] pub async fn set_hostname(hostname: &Hostname) -> Result<(), Error> { let hostname: &String = &hostname.0; - let _out = Command::new("hostnamectl") + Command::new("hostnamectl") + .arg("--static") .arg("set-hostname") .arg(hostname) .invoke(ErrorKind::ParseSysInfo)