Skip to content

Commit

Permalink
Merge pull request #519 from pankona/let-aqua-yaml-not-executable
Browse files Browse the repository at this point in the history
fix: treat aqua.yaml which places on init as normal file rather than executable
  • Loading branch information
suzuki-shunsuke committed Jan 8, 2022
2 parents c5a2244 + 8cb1994 commit 3979f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/init.go
Expand Up @@ -64,7 +64,7 @@ func (ctrl *Controller) Init(ctx context.Context, cfgFilePath string) error {
}
}
cfgStr := strings.Replace(configTemplate, "%%STANDARD_REGISTRY_VERSION%%", registryVersion, 1)
if err := os.WriteFile(cfgFilePath, []byte(cfgStr), 0o755); err != nil { //nolint:gosec,gomnd
if err := os.WriteFile(cfgFilePath, []byte(cfgStr), 0o644); err != nil { //nolint:gosec,gomnd
return fmt.Errorf("write a configuration file: %w", logerr.WithFields(err, logrus.Fields{
"configuration_file_path": cfgFilePath,
}))
Expand Down

0 comments on commit 3979f61

Please sign in to comment.