Skip to content

Commit

Permalink
remove --now from timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Roy Almerol committed Nov 14, 2024
1 parent c1a1a1f commit 9f17743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/store/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ func (store *Store) SetSchedule(job Job) error {
return nil
}

cmd = exec.Command("/usr/bin/systemctl", "enable", "--now", timerPath)
cmd = exec.Command("/usr/bin/systemctl", "enable", timerPath)
cmd.Env = os.Environ()
err = cmd.Run()
if err != nil {
return fmt.Errorf("SetSchedule: error running enable --now -> %w", err)
return fmt.Errorf("SetSchedule: error running enable -> %w", err)
}

return nil
Expand Down

0 comments on commit 9f17743

Please sign in to comment.