[minor] added option to set mariadb password for setup help;
This commit is contained in:
parent
c034750708
commit
e91f5c8f7a
1 changed files with 4 additions and 1 deletions
|
|
@ -384,13 +384,16 @@ def get_version():
|
|||
print "{0} {1}".format(m, module.__version__)
|
||||
|
||||
@click.command('setup-help')
|
||||
def setup_help():
|
||||
@click.option('--mariadb_root_password')
|
||||
def setup_help(mariadb_root_password=None):
|
||||
"Make a database for help documentation"
|
||||
frappe.local.flags = frappe._dict()
|
||||
frappe.local.flags.in_setup_help = True
|
||||
frappe.local.flags.in_install = True
|
||||
frappe.local.lang = 'en'
|
||||
frappe.local.conf = frappe.get_site_config(sites_path='.')
|
||||
if mariadb_root_password:
|
||||
frappe.local.conf.root_password = mariadb_root_password
|
||||
from frappe.utils.help import sync
|
||||
sync()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue