diff --git a/scripts/podman-remote-tcp.nu b/scripts/podman-remote-tcp.nu index 852358c..7ff54aa 100755 --- a/scripts/podman-remote-tcp.nu +++ b/scripts/podman-remote-tcp.nu @@ -10,6 +10,6 @@ def main [ if $root { ssh -tL 2047:localhost:47 $remote ...$rest "sudo socat TCP-LISTEN:47,reuseaddr,fork UNIX-CONNECT:/run/podman/podman.sock" } else { - ssh -tL 2047:localhost:2047 $remote ...$rest "socat TCP-LISTEN:2047,reuseaddr,fork UNIX-CONNECT:/run/user/1000/podman/podman.sock" + ssh -tL 2047:localhost:2047 $remote ...$rest "socat TCP-LISTEN:2047,reuseaddr,fork UNIX-CONNECT:/run/user/$UID/podman/podman.sock" } }