Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agent/internal/agent/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (a *Agent) Run(ctx context.Context) {
}

func (a *Agent) StatusReportLoop(ctx context.Context) {
report := a.BuildStatusReport(false)
report := a.BuildStatusReport(true)
if err := a.Client.ReportStatus(report); err != nil {
log.Printf("[status] failed to report: %v", err)
}
Expand All @@ -78,7 +78,7 @@ func (a *Agent) StatusReportLoop(ctx context.Context) {
case <-ctx.Done():
return
case <-ticker.C:
report := a.BuildStatusReport(false)
report := a.BuildStatusReport(true)
if err := a.Client.ReportStatus(report); err != nil {
log.Printf("[status] failed to report: %v", err)
}
Expand Down
4 changes: 1 addition & 3 deletions web/app/(dashboard)/dashboard/servers/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ export default async function ServerDetailPage({
<div className="space-y-2">
<Label>Install Command</Label>
<code className="block p-3 bg-muted rounded-lg text-sm break-all font-mono">
sudo CONTROL_PLANE_URL={process.env.APP_URL}{" "}
REGISTRATION_TOKEN={server.agentToken} bash -c &quot;$(curl
-fsSL {process.env.APP_URL}/setup.sh)&quot;
{`sudo CONTROL_PLANE_URL=${process.env.APP_URL} REGISTRATION_TOKEN=${server.agentToken} bash -c "$(curl -fsSL ${process.env.APP_URL}/setup.sh)"`}
</code>
</div>
</CardContent>
Expand Down