fix(new-site): don't allow creating a site with the same name as an app
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
62bec2f605
commit
2610b8435c
1 changed files with 6 additions and 0 deletions
|
|
@ -91,6 +91,12 @@ def new_site(
|
|||
|
||||
frappe.init(site, new_site=True)
|
||||
|
||||
if site in frappe.get_all_apps():
|
||||
click.secho(
|
||||
f"Your bench has an app called {site}, please choose another name for the site.", fg="red"
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
if no_mariadb_socket:
|
||||
click.secho(
|
||||
"--no-mariadb-socket is DEPRECATED; "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue