Update installer.py

Revising the `installer.py` script. The script is facing an issue during execution as it required interactive input for the root username unless the username was provided as a flag 42f9e537d0/frappe/installer.py (L157-L158). Resolving this by passing the username as a flag allows the script to proceed successfully.
This commit is contained in:
bgodlin 2025-02-21 14:06:55 +01:00 committed by GitHub
parent f069cffa5d
commit 3a5b15cf5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,6 +207,7 @@ def create_site_in_bench(args):
new_site_cmd = [
"bench",
"new-site",
f"--db-root-username=root",
f"--db-host=mariadb", # Should match the compose service name
f"--db-type={args.db_type}", # Add the selected database type
f"--mariadb-user-host-login-scope=%",
@ -222,6 +223,7 @@ def create_site_in_bench(args):
new_site_cmd = [
"bench",
"new-site",
f"--db-root-username=root",
f"--db-host=postgresql", # Should match the compose service name
f"--db-type={args.db_type}", # Add the selected database type
f"--db-root-password=123", # Replace with your PostgreSQL password