fix: add start.sh log to the agentapi-start.logs too.

This commit is contained in:
35C4n0r 2026-02-04 15:20:27 +05:30
parent f93b366605
commit 787ce3fe0c
No known key found for this signature in database
GPG Key ID: 5B71E5C9D18D5675

View File

@ -112,7 +112,7 @@ export AGENTAPI_CHAT_BASE_PATH="${AGENTAPI_CHAT_BASE_PATH:-}"
export AGENTAPI_ALLOWED_HOSTS="*" export AGENTAPI_ALLOWED_HOSTS="*"
# Call agentapi-start.sh to write agent-command.sh # Call agentapi-start.sh to write agent-command.sh
"$module_path/scripts/agentapi-start.sh" "$module_path/scripts/agentapi-start.sh" &> "$module_path/agentapi-start.log"
# Build agentapi server command arguments # Build agentapi server command arguments
ARGS=( ARGS=(
@ -128,7 +128,7 @@ if [ -n "${AGENTAPI_INITIAL_PROMPT}" ]; then
ARGS+=("--initial-prompt" "${AGENTAPI_INITIAL_PROMPT}") ARGS+=("--initial-prompt" "${AGENTAPI_INITIAL_PROMPT}")
fi fi
# Start agentapi server with the agent-command.sh script # Start agentapi server with the agent-command.sh script (append logs to same file)
nohup agentapi "${ARGS[@]}" -- "$module_path/agent-command.sh" &> "$module_path/agentapi-start.log" & nohup agentapi "${ARGS[@]}" -- "$module_path/agent-command.sh" &>> "$module_path/agentapi-start.log" &
"$module_path/scripts/agentapi-wait-for-start.sh" "${AGENTAPI_PORT}" "$module_path/scripts/agentapi-wait-for-start.sh" "${AGENTAPI_PORT}"