qrexec: prefer VM-local service file (if present) over default one

This will allow a service to be overridden per-VM.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
This commit is contained in:
Marek Marczykowski-Górecki 2015-05-13 23:21:01 +02:00
parent c4cf6b646b
commit c629529565
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -14,7 +14,7 @@ if ! [ $# = 2 ] ; then
fi fi
export QREXEC_REMOTE_DOMAIN="$2" export QREXEC_REMOTE_DOMAIN="$2"
for CFG_FILE in $QUBES_RPC/"$1" $LOCAL_QUBES_RPC/"$1"; do for CFG_FILE in $LOCAL_QUBES_RPC/"$1" $QUBES_RPC/"$1"; do
if [ -s "$CFG_FILE" ]; then if [ -s "$CFG_FILE" ]; then
break break
fi fi