Skip to content

Commit

Permalink
Improve the command
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Feb 5, 2025
1 parent 925be52 commit 38ffc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/envd/internal/host/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func updateClock() error {
defer cancel()

// The chronyc -a makestep is not immediately stepping the clock
err := exec.CommandContext(ctx, "/bin/bash", "-c", "/bin/date -s @$(/usr/sbin/phc_ctl /dev/ptp0 get | cut -d' ' -f5)").Run()
err := exec.CommandContext(ctx, "/bin/bash", "-l", "-c", "date -s @$(/usr/sbin/phc_ctl /dev/ptp0 get | cut -d' ' -f5)").Run()
if err != nil {
return fmt.Errorf("failed to update clock: %w", err)
}
Expand Down

0 comments on commit 38ffc4e

Please sign in to comment.