]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
worker_start: allow ARCHIVE variable override 1407/head
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Tue, 11 Feb 2020 15:56:45 +0000 (16:56 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Tue, 11 Feb 2020 15:59:19 +0000 (16:59 +0100)
The worker_start.sh script is using archive directory inside
the worker user home which cannot be changed, this patches
allows override ARCHIVE environment variable to address
this issue.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
docs/_static/worker_start.sh

index c8f0d4636c628e4d760361565990d1b0204d7b0e..e2b4424aed18d59bbfc8ca21338f8c3a7e0a5b77 100644 (file)
@@ -2,7 +2,7 @@
  
 # A simple script used by Red Hat to start teuthology-worker processes.
  
-ARCHIVE=$HOME/archive
+ARCHIVE=${ARCHIVE:-"$HOME/archive"}
 WORKER_LOGS=$ARCHIVE/worker_logs
  
 function start_workers_for_tube {