From 3d57a5d0e5cb8bfdc21fbbc0b3cb98a0c6915ead Mon Sep 17 00:00:00 2001 From: Chiara Zampolli Date: Fri, 13 May 2022 08:58:16 +0200 Subject: [PATCH] Fix option to pass the name of the proxy/channel --- DATA/common/setenv_calib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DATA/common/setenv_calib.sh b/DATA/common/setenv_calib.sh index 68c0454f9..d0e8d120d 100755 --- a/DATA/common/setenv_calib.sh +++ b/DATA/common/setenv_calib.sh @@ -119,8 +119,10 @@ get_proxy_connection() # setting the type of connection if [[ $2 == "input" ]]; then local CONNECTION="method=bind,type=pull" + local NAMECONNECTION="--proxy-name" elif [[ $2 == "output" ]]; then local CONNECTION="method=connect,type=push" + local NAMECONNECTION="--proxy-channel-name" else echo "parameter 2 should be either 'input' or 'output'" exit 2 @@ -131,7 +133,7 @@ get_proxy_connection() else CONNECTION+=",transport=zeromq" fi - local PROXY_CONN="--proxy-channel-name aggregator-proxy-$1 --channel-config \"name=aggregator-proxy-$1,$CONNECTION,rateLogging=1\"" + local PROXY_CONN="$NAMECONNECTION aggregator-proxy-$1 --channel-config \"name=aggregator-proxy-$1,$CONNECTION,rateLogging=1\"" echo PROXY_CONN = $PROXY_CONN 1>&2 echo $PROXY_CONN