This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-testing.git


The following commit(s) were added to refs/heads/main by this push:
     new 6a665e7  Export PSSH (followup to #179)
6a665e7 is described below

commit 6a665e7a1c995c0f7f40aa1dfde29d515ed706fe
Author: Christopher Tubbs <ctubb...@apache.org>
AuthorDate: Wed Jan 5 15:19:12 2022 -0500

    Export PSSH (followup to #179)
    
    Follow-up fix to export PSSH for agitator
    
    The PSSH environment variable needs to be exported by bin/agitator so it
    can be seen inside the libexec/master-agitator.pl script.
---
 bin/agitator | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/agitator b/bin/agitator
index cf1dd55..91e456c 100755
--- a/bin/agitator
+++ b/bin/agitator
@@ -32,10 +32,11 @@ EOF
 
 function start_agitator() {
   ## check that pssh is installed, falling back to parallel-ssh if needed
+  ## make sure to export it, so it can be seen inside the agitator perl script
   if hash pssh 2>/dev/null; then
-    PSSH=pssh
+    export PSSH=pssh
   elif hash parallel-ssh 2>/dev/null; then
-    PSSH=parallel-ssh
+    export PSSH=parallel-ssh
   else
     echo >&2 "The agitator requires pssh/parallel-ssh to be installed. 
Aborting."; exit 1;
   fi

Reply via email to