Skip to content

Commit aae88fc

Browse files
committed
stash-cache: allow environment variable override of redirector (SOFTWARE-5641)
1 parent 91f35ba commit aae88fc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

configs/stash-cache/config.d/40-stash-cache-plugin.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ else
5858
pss.setopt ConnectionRetry 2
5959
fi
6060

61+
# Allow environment variable override of redirector
62+
if defined ?~XC_REDIRECTOR
63+
set eREDIRECTOR=$XC_REDIRECTOR
64+
pss.origin $eREDIRECTOR
65+
fi
66+
6167
# Cache plugin parameters
6268
#
6369
# The default values here should be sufficient for most use cases. To change them, override them

0 commit comments

Comments
 (0)