From 3ffea03e7ec12609c873c0027d4420880b05b86f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Sat, 23 Jul 2016 15:55:27 +0530 Subject: [PATCH] [fix] confirm reinstall --- frappe/commands/site.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/commands/site.py b/frappe/commands/site.py index a35ae749f1..f434ced042 100755 --- a/frappe/commands/site.py +++ b/frappe/commands/site.py @@ -111,6 +111,7 @@ def restore(context, sql_file_path, mariadb_root_username=None, mariadb_root_pas @pass_context def reinstall(context): "Reinstall site ie. wipe all data and start over" + click.confirm('This will wipe your database. Are you sure you want to reinstall?', abort=True) site = get_site(context) try: frappe.init(site=site) @@ -180,7 +181,7 @@ def disable_user(context, email): user = frappe.get_doc("User", email) user.enabled = 0 user.save(ignore_permissions=True) - frappe.db.commit() + frappe.db.commit() @click.command('migrate')