From b2d608de098f5ac8dd8acd9ebae50d8f06e4101d Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 10 May 2012 12:39:33 +0530 Subject: [PATCH] erpenxt installer --- py/webnotes/install_lib/install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/webnotes/install_lib/install.py b/py/webnotes/install_lib/install.py index bc70ebe450..d4b5ed428f 100755 --- a/py/webnotes/install_lib/install.py +++ b/py/webnotes/install_lib/install.py @@ -49,7 +49,9 @@ class Installer: self.dbman.delete_user(target) # create user and db - self.dbman.create_user(target, conf.db_password) + self.dbman.create_user(target, + hasattr(conf, 'db_password') and conf.db_password or password) + if verbose: print "Created user %s" % target # create a database