fix(installer, scripts): improve read-only text handling and streamline db password input

- Update `screen.py` to make text read-only using `state='disabled'`, while allowing text selection and copying.
- Simplify `init_primary_domain.sh` by removing unnecessary local variable declaration for `db_pass`.
This commit is contained in:
chrisfu 2025-12-20 20:55:52 -08:00
parent 3a1f5ea444
commit 325d180e9e
2 changed files with 3 additions and 3 deletions

View File

@ -366,7 +366,7 @@ case "$ACTION" in
initialize)
ensure_tools
# Read password from stdin if provided
local db_pass=""
db_pass=""
if [[ ! -t 0 ]]; then
read -r db_pass
fi

View File

@ -195,8 +195,8 @@ class TerminalConsole(ttk.Frame):
self.scroll.pack(side='right', fill='y')
self.text.pack(side='left', fill='both', expand=True)
# Make read-only by default
self.text.bind("<Key>", lambda e: "break")
# Make read-only by default but allow selection and copying
self.text.configure(state='disabled')
def write(self, content: str):
"""Append text to the console and scroll to the bottom."""