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:
Akhil Narang 2025-01-10 11:25:13 +05:30
parent 62bec2f605
commit 2610b8435c
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -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; "