From 221636f2179068bdb7c28b6b70254429beb0c15e Mon Sep 17 00:00:00 2001 From: Anton Todorov Date: Tue, 28 Apr 2020 11:58:31 +0300 Subject: [PATCH] F #2514: Look for ONE_DB_PASSWORD environment var (#2516) 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 7145bfb1ab..ab1b3f77e6 100644 --- a/src/onedb/onedb.rb +++ b/src/onedb/onedb.rb @@ -48,6 +48,9 @@ class OneDB end passwd = ops[:passwd] + if !passwd + passwd = ENV['ONE_DB_PASSWORD'] + end if !passwd passwd = get_password end