mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
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:
parent
f069cffa5d
commit
3a5b15cf5d
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue