mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
Update temp dir permissions when creating install packages (#1946)
This commit is contained in:
parent
826f15d6c3
commit
0e50322800
@ -23,6 +23,7 @@ func buildNFPM(opt Options, pkger nfpm.Packager) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to create temp dir")
|
return errors.Wrap(err, "failed to create temp dir")
|
||||||
}
|
}
|
||||||
|
os.Chmod(tmpDir, 0755)
|
||||||
defer os.RemoveAll(tmpDir)
|
defer os.RemoveAll(tmpDir)
|
||||||
log.Debug().Str("path", tmpDir).Msg("created temp dir")
|
log.Debug().Str("path", tmpDir).Msg("created temp dir")
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ func BuildPkg(opt Options) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to create temp dir")
|
return errors.Wrap(err, "failed to create temp dir")
|
||||||
}
|
}
|
||||||
|
os.Chmod(tmpDir, 0755)
|
||||||
defer os.RemoveAll(tmpDir)
|
defer os.RemoveAll(tmpDir)
|
||||||
log.Debug().Str("path", tmpDir).Msg("created temp dir")
|
log.Debug().Str("path", tmpDir).Msg("created temp dir")
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ func BuildMSI(opt Options) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to create temp dir")
|
return errors.Wrap(err, "failed to create temp dir")
|
||||||
}
|
}
|
||||||
|
os.Chmod(tmpDir, 0755)
|
||||||
defer os.RemoveAll(tmpDir)
|
defer os.RemoveAll(tmpDir)
|
||||||
log.Debug().Str("path", tmpDir).Msg("created temp dir")
|
log.Debug().Str("path", tmpDir).Msg("created temp dir")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user