From 33b5071aaab51bbf06a5fd68d5f109d9af9d9cd7 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Sun, 1 Mar 2020 16:45:34 +0530 Subject: [PATCH] fix: Frappe/ERPNext worker image new site command --- build/common/commands/new.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/common/commands/new.py b/build/common/commands/new.py index 10d6a8e4..ebf029b9 100644 --- a/build/common/commands/new.py +++ b/build/common/commands/new.py @@ -6,7 +6,7 @@ site_name = os.environ.get("SITE_NAME", 'site1.localhost') mariadb_root_username = os.environ.get("DB_ROOT_USER", 'root') mariadb_root_password = os.environ.get("DB_ROOT_PASSWORD", 'admin') force = True if os.environ.get("FORCE", None) else False - +install_apps = ['erpnext'] if os.environ.get("INSTALL_ERPNEXT", None) else False frappe.init(site_name, new_site=True) _new_site( @@ -16,7 +16,7 @@ _new_site( mariadb_root_password=mariadb_root_password, admin_password=os.environ.get("ADMIN_PASSWORD", 'admin'), verbose=True, - install_apps=[], + install_apps=install_apps, source_sql=None, force=force, reinstall=False,