Update temp dir permissions when creating install packages (#1946)

This commit is contained in:
Frederico F. de Oliveira 2021-09-08 12:35:35 -03:00 committed by GitHub
parent 826f15d6c3
commit 0e50322800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ func buildNFPM(opt Options, pkger nfpm.Packager) error {
if err != nil {
return errors.Wrap(err, "failed to create temp dir")
}
os.Chmod(tmpDir, 0755)
defer os.RemoveAll(tmpDir)
log.Debug().Str("path", tmpDir).Msg("created temp dir")

View File

@ -27,6 +27,7 @@ func BuildPkg(opt Options) error {
if err != nil {
return errors.Wrap(err, "failed to create temp dir")
}
os.Chmod(tmpDir, 0755)
defer os.RemoveAll(tmpDir)
log.Debug().Str("path", tmpDir).Msg("created temp dir")

View File

@ -22,6 +22,7 @@ func BuildMSI(opt Options) error {
if err != nil {
return errors.Wrap(err, "failed to create temp dir")
}
os.Chmod(tmpDir, 0755)
defer os.RemoveAll(tmpDir)
log.Debug().Str("path", tmpDir).Msg("created temp dir")