summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kocialkowski2023-04-27 10:45:08 +0200
committerPaul Kocialkowski2023-04-27 10:45:08 +0200
commit3670a4c421cd828709204d4d3f40d048cf1d1e37 (patch)
tree77f30c3934bdf14757fee33bd014f8ecbfd610ee
parentd4f609132f7e4111dcf1d51dfb3f9ed2f6ffd239 (diff)
host-control: Open tty with ssh, fix shell
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rwxr-xr-xhost-control8
1 files 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):