Error: no HOME environment variable

Well progress. Turned out $HOME wasn’t in the regular /etc/profile and since we did a lot of custom modifications for our environment i had to make a second file /etc/profile-portal that gets sourced for batch_connect in the script wrapper:

  batch_connect:
    basic:
      script_wrapper: |
        #!/bin/bash
        set +o posix
        source /etc/profile-portal
        module purge
        %s
      set_host: "host=$(hostname -A | awk '{print $1}')"
    vnc:
      script_wrapper: |
        #!/bin/bash
        set +o posix
        source /etc/profile-portal
        module purge
        export PATH="/opt/TurboVNC/bin:$PATH"
        export WEBSOCKIFY_CMD="/apps/websockify/0.10.0/run"
        %s
      set_host: "host=$(hostname -A | awk '{print $1}')"

Now getting this so if there’s a separate topic that addressed this i can look at it or start a new topic.