Fix installer.py (#1571)

* 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.

* ci: pin pre-commit/prettier to 3.5.2

---------

Co-authored-by: Revant Nandgaonkar <revant.one@gmail.com>
This commit is contained in:
bgodlin
2025-02-23 07:22:37 +01:00
committed by GitHub
parent f069cffa5d
commit bff029dca3
2 changed files with 4 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ repos:
rev: v4.0.0-alpha.8 rev: v4.0.0-alpha.8
hooks: hooks:
- id: prettier - id: prettier
additional_dependencies:
- prettier@3.5.2
- repo: https://github.com/codespell-project/codespell - repo: https://github.com/codespell-project/codespell
rev: v2.4.1 rev: v2.4.1

View File

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