fix: Check if homepage is not setup-wizard
The new desk changes sets the default homepage to 'workspace'. To avoid problem in the future, check if the value is not setup-wizard. Also throw an exception if the check passes, so it exits with error.
This commit is contained in:
parent
addd1e842b
commit
f3a6e30e6a
@ -29,12 +29,12 @@ def after_install():
|
|||||||
|
|
||||||
|
|
||||||
def check_setup_wizard_not_completed():
|
def check_setup_wizard_not_completed():
|
||||||
if frappe.db.get_default('desktop:home_page') == 'desktop':
|
if frappe.db.get_default('desktop:home_page') != 'setup-wizard':
|
||||||
print()
|
message = """Cannot install ERPNext.
|
||||||
print("ERPNext can only be installed on a fresh site where the setup wizard is not completed")
|
|
||||||
print("You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall")
|
ERPNext can only be installed on a fresh site where the setup wizard is not completed.
|
||||||
print()
|
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall"""
|
||||||
return False
|
frappe.throw(message, exc=frappe.IncompatibleApp)
|
||||||
|
|
||||||
|
|
||||||
def set_single_defaults():
|
def set_single_defaults():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user