mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-23 22:49:27 -05:00
15 lines
335 B
Plaintext
15 lines
335 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
#origin="$QREXEC_REMOTE_DOMAIN"
|
||
|
agent="$QREXEC_SERVICE_ARGUMENT"
|
||
|
socket="/tmp/qubes-ssh-agent/${agent}.sock"
|
||
|
|
||
|
qvm-ssh-agent add "${agent}" >/dev/null
|
||
|
exec socat STDIO UNIX-CLIENT:"$socket"
|