diff --git a/Cargo.lock b/Cargo.lock index 0300590..eb51cbd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,7 +270,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.49" +version = "0.1.50" dependencies = [ "anyhow", "chrono", @@ -291,7 +291,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.49" +version = "0.1.50" dependencies = [ "anyhow", "async-trait", @@ -314,7 +314,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.49" +version = "0.1.50" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 048a496..089f88e 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.50" +version = "0.1.51" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index f574ac7..dd4c88d 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.50" +version = "0.1.51" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index 469aa78..c41144c 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -289,7 +289,7 @@ ssh -tt {}@{} 'bash -ic {}'", // Show service logs via journalctl in tmux popup if let (Some(service_name), Some(hostname)) = (self.get_selected_service(), self.current_host.clone()) { let journalctl_command = format!( - "ssh -tt {}@{} 'journalctl -u {}.service -f --no-pager -n 50'", + "ssh -tt {}@{} 'sudo journalctl -u {}.service -f --no-pager -n 50'", self.config.ssh.rebuild_user, hostname, service_name @@ -315,7 +315,7 @@ ssh -tt {}@{} 'bash -ic {}'", if let Some(host_logs) = self.config.service_logs.get(&hostname) { if let Some(log_config) = host_logs.iter().find(|config| config.service_name == service_name) { let tail_command = format!( - "ssh -tt {}@{} 'tail -f {}'", + "ssh -tt {}@{} 'sudo tail -n 50 -f {}'", self.config.ssh.rebuild_user, hostname, log_config.log_file_path diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 45eefeb..de0165f 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.50" +version = "0.1.51" edition = "2021" [dependencies]