From bee4c25f1f75638305ae583a5cae736e292d71ca Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 29 Jun 2022 16:24:04 +0200 Subject: [PATCH] Try 07 --- pkg/templater/repo-apk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/templater/repo-apk.go b/pkg/templater/repo-apk.go index d7ec9ac..43fd5eb 100644 --- a/pkg/templater/repo-apk.go +++ b/pkg/templater/repo-apk.go @@ -55,7 +55,7 @@ func (hr *APKRepository) Add() error { } else { data := fmt.Sprintf("%s", hr.URL) fmt.Printf("DEBUG %v", data) - file, err := os.OpenFile("/etc/apk/repositories", os.O_APPEND|os.O_WRONLY, 0644) + file, err := os.OpenFile(APKConfigFile, os.O_APPEND|os.O_WRONLY, 0644) if err != nil { return err }