This commit is contained in:
Philippe Caseiro 2022-06-30 15:55:12 +02:00
parent e116958fe3
commit 7eb864e818
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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)
}