Skip to content

Commit

Permalink
set binary permission to executable on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Aug 27, 2020
1 parent 90beda3 commit 91a9129
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autodns/pkg/upgrader/replace.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ func replaceLinux(data io.Reader, path string) error {
defer out.Close()
io.Copy(out, data)

logger.Stdout.Println(2, "changing binary permissions to 755")
err = os.Chmod(path, 0755)
if err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit 91a9129

Please sign in to comment.