From 7eb864e8180324583eea1dc9b3b825819ad6a455 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 30 Jun 2022 15:55:12 +0200 Subject: [PATCH] Try 07 --- pkg/templater/repo-apk.go | 3 ++- pkg/templater/system_services.go | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/templater/repo-apk.go b/pkg/templater/repo-apk.go index 5ca7c41..c8f88a6 100644 --- a/pkg/templater/repo-apk.go +++ b/pkg/templater/repo-apk.go @@ -76,6 +76,7 @@ func (hr *APKRepository) Update() error { return nil } +// FIXME func (hr *APKRepository) Delete() error { fileBytes, err := ioutil.ReadFile("/etc/apk/repositories") if err != nil { @@ -83,7 +84,7 @@ func (hr *APKRepository) Delete() error { } lines := strings.Split(string(fileBytes), "\n") for _, line := range lines { - fmt.Println(line) + fmt.Printf("DEBUG TODO %s", line) } return nil } diff --git a/pkg/templater/system_services.go b/pkg/templater/system_services.go index ac43887..c0faa8d 100644 --- a/pkg/templater/system_services.go +++ b/pkg/templater/system_services.go @@ -72,7 +72,6 @@ func (sys *SystemService) Start() error { } } else if sys.Type == "openrc" { _, stdErr, err := utils.RunSystemCommand("service", sys.Name, "stop") - fmt.Printf("ERROR [%v]", err) if err != nil { return fmt.Errorf("System service %s \n * Enable error:\n - %s", sys.Name, stdErr) }