Merge branch 'datafiles_in_hub' of github.com:crowdsecurity/crowdsec into datafiles_in_hub

This commit is contained in:
alteredCoder 2022-02-04 15:24:20 +01:00
commit ca224df7fa

View file

@ -43,7 +43,7 @@ func downloadFile(url string, destPath string) error {
return fmt.Errorf("download response 'HTTP %d' : %s", resp.StatusCode, string(body))
}
if err := os.MkdirAll(filepath.Dir(destPath), 0666); err != nil {
if err := os.MkdirAll(filepath.Dir(destPath), 0744); err != nil {
return err
}