fix: use lifespan context manager instead of deprecated on_event for startup
This commit is contained in:
@@ -55,9 +55,10 @@ def build_host_command(host_config: dict) -> str | None:
|
||||
quoted_container = shlex.quote(container)
|
||||
quoted_session = shlex.quote(session_name)
|
||||
quoted_marker = shlex.quote(PERSISTENCE_STATUS_PREFIX)
|
||||
# Use login shell to ensure env vars are loaded from .bashrc
|
||||
attach_cmd = (
|
||||
f"{docker_bin} exec -it {quoted_container} "
|
||||
f"tmux new-session -A -s {quoted_session}"
|
||||
f"bash -l -c 'cd /repos/nas-tools && tmux new-session -A -s {quoted_session}'"
|
||||
)
|
||||
|
||||
script = " ".join([
|
||||
|
||||
Reference in New Issue
Block a user