feat: overwrite agentapi logs instead of appending them

This commit is contained in:
35C4n0r 2026-02-06 21:34:25 +05:30
parent 85e7da3c41
commit 03ac608e1f
No known key found for this signature in database
GPG Key ID: 5B71E5C9D18D5675
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ locals {
main_script = file("${path.module}/scripts/main.sh")
shutdown_script = file("${path.module}/scripts/agentapi-shutdown.sh")
start_script_name = "${var.agentapi_server_type}-start_script"
start_script_name = "${var.agentapi_server_type}-start_script"
agentapi_main_script_name = "${var.agentapi_server_type}-main_script"
}

View File

@ -100,6 +100,6 @@ if [ -n "${AGENTAPI_INITIAL_PROMPT}" ]; then
fi
# Start agentapi server with the agent-command.sh script
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}"