Skip to content

Commit

Permalink
Merge pull request #18 from TheCacophonyProject/salti-id-fix
Browse files Browse the repository at this point in the history
checking for minion_id not needed anymore as it will exit if the devi…
  • Loading branch information
CameronRP authored Apr 12, 2024
2 parents 1630416 + 9c935c8 commit 96e27e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion _release/device-register.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[Unit]
Description=Cacophony device register service
After=multi-user.target network.target
ConditionPathExists=!/etc/salt/minion_id

[Service]
ExecStart=/usr/bin/device-register --reboot --retry-until-registered
Expand Down
2 changes: 0 additions & 2 deletions cmd/device-register/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package main

import (
"log"
"math/rand"
"net/url"
"os"
"os/exec"
Expand Down Expand Up @@ -88,7 +87,6 @@ func procArgs() Args {
}

func main() {
rand.Seed(time.Now().UnixNano())
err := runMain()
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 96e27e1

Please sign in to comment.