From d75d35da82d707614fae9626ec1a5e5cd8dc25f5 Mon Sep 17 00:00:00 2001 From: Junya Ogasawara Date: Fri, 29 Jun 2018 14:06:54 +0900 Subject: [PATCH] Change permission of index.yaml Because index.yaml generated by a command `helm repo index` isn't executable file, but just configuration file. --- cmd/helm/repo_index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/repo_index.go b/cmd/helm/repo_index.go index 540057eb8..939f35ac0 100644 --- a/cmd/helm/repo_index.go +++ b/cmd/helm/repo_index.go @@ -91,7 +91,7 @@ func index(dir, url, mergeTo string) error { var i2 *repo.IndexFile if _, err := os.Stat(mergeTo); os.IsNotExist(err) { i2 = repo.NewIndexFile() - i2.WriteFile(mergeTo, 0755) + i2.WriteFile(mergeTo, 0644) } else { i2, err = repo.LoadIndexFile(mergeTo) if err != nil { @@ -101,5 +101,5 @@ func index(dir, url, mergeTo string) error { i.Merge(i2) } i.SortEntries() - return i.WriteFile(out, 0755) + return i.WriteFile(out, 0644) }