Try 07
This commit is contained in:
parent
e116958fe3
commit
7eb864e818
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue