diff options
Diffstat (limited to 'host-control')
-rwxr-xr-x | host-control | 8 |
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): |