mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-05-05 06:47:01 +00:00
Fix log folder permissions (#4749)
This commit is contained in:
parent
df199a8001
commit
0b657236d9
@ -29,7 +29,7 @@ func NewLogStore(base string) (log.Service, error) {
|
|||||||
return nil, fmt.Errorf("file storage base path is required")
|
return nil, fmt.Errorf("file storage base path is required")
|
||||||
}
|
}
|
||||||
if _, err := os.Stat(base); err != nil && os.IsNotExist(err) {
|
if _, err := os.Stat(base); err != nil && os.IsNotExist(err) {
|
||||||
err = os.MkdirAll(base, 0o600)
|
err = os.MkdirAll(base, 0o700)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user