From 3670a4c421cd828709204d4d3f40d048cf1d1e37 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Thu, 27 Apr 2023 10:45:08 +0200 Subject: host-control: Open tty with ssh, fix shell Signed-off-by: Paul Kocialkowski --- host-control | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/host-control b/host-control index 8ed59ff..8302e40 100755 --- a/host-control +++ b/host-control @@ -73,7 +73,7 @@ class host_control(): def ssh_call(self, host, command): address = self.ssh_address(host) - command = [ "ssh", address, "SYSTEMD_COLORS=1" ] + command + command = [ "ssh", "-t", address ] + command self.command_call(command) @@ -410,7 +410,11 @@ class host_control(): self.host_call(host, command) def system_shell(self, host): - command = [ "sh" ] + if "shell" in host: + command = [ host["shell"] ] + else: + command = [ "bash" ] + self.host_call(host, command) def system_ping(self, host): -- cgit v1.2.3