diff --git a/frappe/commands/site.py b/frappe/commands/site.py index 9ff5071bc0..6f538eda8d 100755 --- a/frappe/commands/site.py +++ b/frappe/commands/site.py @@ -66,7 +66,9 @@ def _new_site(db_name, site, mariadb_root_username=None, mariadb_root_password=N print "*** Scheduler is", scheduler_status, "***" finally: - os.remove(installing) + if os.path.exists(installing): + os.remove(installing) + frappe.destroy() @click.command('restore')