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