[ARVADOS] updated: 2.1.0-335-g01e15db1f

Git user git at public.arvados.org
Mon Jan 25 15:46:09 UTC 2021


Summary of changes:
 lib/boot/passenger.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  01e15db1f4a331508117bc841256acec8ca361de (commit)
      from  18def2a271e02fd64749fe650034f50d1b659e45 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 01e15db1f4a331508117bc841256acec8ca361de
Author: Tom Clegg <tom at curii.com>
Date:   Mon Jan 25 10:45:30 2021 -0500

    16306: Fix runPassenger HOME env in non-production case.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/lib/boot/passenger.go b/lib/boot/passenger.go
index 84f51d0a7..420393997 100644
--- a/lib/boot/passenger.go
+++ b/lib/boot/passenger.go
@@ -141,12 +141,12 @@ func (runner runPassenger) Run(ctx context.Context, fail func(error), super *Sup
 		}
 		opts := runOptions{
 			env: append([]string{
-				"HOME=/var/www",
 				"TMPDIR=" + super.wwwtempdir,
 			}, railsEnv...),
 		}
 		if super.ClusterType == "production" {
 			opts.user = "www-data"
+			opts.env = append(opts.env, "HOME=/var/www")
 		} else {
 			// This would be desirable when changing uid
 			// too, but it fails because /dev/stderr is a

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list