Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 8955c95

Browse files
committed
Chmod the new executable (again)
1 parent a628c3f commit 8955c95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

handlers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func UpdateCB(status *Status) mqtt.MessageHandler {
7676
status.Error("/update", errors.Wrap(err, "error copying itself from "+name+" to "+executablePath))
7777
return
7878
}
79+
os.Chmod(executablePath, 0744)
7980
os.Remove(executablePath + ".old")
8081
// leap of faith: kill itself, systemd should respawn the process
8182
os.Exit(0)

0 commit comments

Comments
 (0)