mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-07 00:41:55 +00:00
fix: skip root pwd change in non-docker env
This commit is contained in:
parent
f11f5da555
commit
ca9c791bff
1 changed files with 3 additions and 2 deletions
|
|
@ -438,8 +438,9 @@ def _write_sensitive_settings(settings: Settings):
|
|||
if settings["rfc_password"] != PASSWORD_PLACEHOLDER:
|
||||
dotenv.save_dotenv_value(dotenv.KEY_RFC_PASSWORD, settings["rfc_password"])
|
||||
if settings["root_password"] != PASSWORD_PLACEHOLDER:
|
||||
dotenv.save_dotenv_value(dotenv.KEY_ROOT_PASSWORD, settings["root_password"])
|
||||
set_root_password(settings["root_password"])
|
||||
if runtime.is_dockerized():
|
||||
dotenv.save_dotenv_value(dotenv.KEY_ROOT_PASSWORD, settings["root_password"])
|
||||
set_root_password(settings["root_password"])
|
||||
|
||||
# Handle secrets separately - merge with existing preserving comments/order and support deletions
|
||||
secrets_manager = get_default_secrets_manager()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue