浏览代码

fix workspace invokation and require socat

pull/1/head
父节点
当前提交
59183c3a7e
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. +7
    -0
      tasks/apt.yaml
  2. +1
    -1
      templates/workspaces/workspace.space.fish.j2

+ 7
- 0
tasks/apt.yaml 查看文件

@@ -0,0 +1,7 @@
---

- name: ensure that all apt package requirements are met
apt:
pkg:
- socat

+ 1
- 1
templates/workspaces/workspace.space.fish.j2 查看文件

@@ -15,7 +15,7 @@ end

{% if workspaces[workspace].type == "vncviewer-ssh-socket" %}

socat "UNIX-LISTEN:.vnc/socket.anix,reuseaddr" EXEC:'ssh {{workspaces[workspace].host}} socat STDIO UNIX-CONNECT\:.vnc/socket' &
socat "UNIX-LISTEN:.vnc/socket.{{workspaces[workspace].host}},reuseaddr" EXEC:'ssh {{workspaces[workspace].host}} socat STDIO UNIX-CONNECT\:.vnc/socket' &
exec xtigervncviewer .vnc/socket.{{workspaces[workspace].host}}

{% elif workspaces[workspace].type == "vncviewer-ssh-tcp" %}