mirror of
https://github.com/ben-grande/qusal.git
synced 2025-06-24 22:30:45 -04:00
fix: start qube before running qrexec-client
This commit is contained in:
parent
49fb733a1c
commit
beb5c048ee
2 changed files with 8 additions and 0 deletions
|
@ -45,6 +45,10 @@ elif command -v qrexec-client >/dev/null; then
|
||||||
if test "${authority}" = "@default"; then
|
if test "${authority}" = "@default"; then
|
||||||
authority="${default_qube}"
|
authority="${default_qube}"
|
||||||
fi
|
fi
|
||||||
|
if ! qvm-check "${authority}" >/dev/null 2>&1; then
|
||||||
|
die "Qube doesn't exist: '${authority}'"
|
||||||
|
fi
|
||||||
|
qvm-start --skip-if-running "${authority}"
|
||||||
exec qrexec-client -tT -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
|
exec qrexec-client -tT -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,10 @@ elif command -v qrexec-client >/dev/null; then
|
||||||
if test "${authority}" = "@default"; then
|
if test "${authority}" = "@default"; then
|
||||||
authority="${default_qube}"
|
authority="${default_qube}"
|
||||||
fi
|
fi
|
||||||
|
if ! qvm-check "${authority}" >/dev/null 2>&1; then
|
||||||
|
die "Qube doesn't exist: '${authority}'"
|
||||||
|
fi
|
||||||
|
qvm-start --skip-if-running "${authority}"
|
||||||
log "->" qrexec-client -T -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
|
log "->" qrexec-client -T -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
|
||||||
exec qrexec-client -T -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
|
exec qrexec-client -T -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue