From f3f888bf442988e156202a0f1197b98d7aa123f4 Mon Sep 17 00:00:00 2001 From: Anton Todorov Date: Wed, 17 Oct 2018 12:57:39 +0300 Subject: [PATCH] F #2514 look for ONE_DB_PASSWORD environment var before falling back to interactive --- src/onedb/onedb.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/onedb/onedb.rb b/src/onedb/onedb.rb index 34cd1b696b4..b738c7d1bac 100644 --- a/src/onedb/onedb.rb +++ b/src/onedb/onedb.rb @@ -43,6 +43,9 @@ def initialize(ops) end passwd = ops[:passwd] + if !passwd + passwd = ENV['ONE_DB_PASSWORD'] + end if !passwd passwd = get_password end