mirror of
https://github.com/ben-grande/qusal.git
synced 2025-12-16 08:54:32 -05:00
fix: terminate option parsing for qvm commands
This commit is contained in:
parent
99fb13856c
commit
bf0a4bc914
3 changed files with 17 additions and 17 deletions
|
|
@ -9,16 +9,16 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
- require:
|
- require:
|
||||||
- qvm: {{ slsdotpath }}
|
- qvm: {{ slsdotpath }}
|
||||||
- name: |
|
- name: |
|
||||||
qvm-check -q --running {{ slsdotpath }} && qvm-pause {{ slsdotpath }}
|
qvm-check -q --running -- {{ slsdotpath }} && qvm-pause -- {{ slsdotpath }}
|
||||||
qvm-firewall {{ slsdotpath }} reset
|
qvm-firewall -- {{ slsdotpath }} reset
|
||||||
qvm-firewall {{ slsdotpath }} del --rule-no 0
|
qvm-firewall -- {{ slsdotpath }} del --rule-no 0
|
||||||
qvm-check -q --running {{ slsdotpath }} && qvm-unpause {{ slsdotpath }}
|
qvm-check -q --running -- {{ slsdotpath }} && qvm-unpause -- {{ slsdotpath }}
|
||||||
qvm-firewall {{ slsdotpath }} add accept signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept storage.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept storage.signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept chat.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept chat.signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept cdn.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept cdn.signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept cdn2.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept cdn2.signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept sfu.voip.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept sfu.voip.signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept turn.voip.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept turn.voip.signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept turn2.voip.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept turn2.voip.signal.org
|
||||||
qvm-firewall {{ slsdotpath }} add accept turn3.voip.signal.org
|
qvm-firewall -- {{ slsdotpath }} add accept turn3.voip.signal.org
|
||||||
|
|
|
||||||
|
|
@ -45,10 +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
|
if ! qvm-check -- "${authority}" >/dev/null 2>&1; then
|
||||||
die "Qube doesn't exist: '${authority}'"
|
die "Qube doesn't exist: '${authority}'"
|
||||||
fi
|
fi
|
||||||
qvm-start --skip-if-running "${authority}"
|
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,10 +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
|
if ! qvm-check -- "${authority}" >/dev/null 2>&1; then
|
||||||
die "Qube doesn't exist: '${authority}'"
|
die "Qube doesn't exist: '${authority}'"
|
||||||
fi
|
fi
|
||||||
qvm-start --skip-if-running "${authority}"
|
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