Try 07
This commit is contained in:
parent
e116958fe3
commit
7eb864e818
|
@ -76,6 +76,7 @@ func (hr *APKRepository) Update() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME
|
||||||
func (hr *APKRepository) Delete() error {
|
func (hr *APKRepository) Delete() error {
|
||||||
fileBytes, err := ioutil.ReadFile("/etc/apk/repositories")
|
fileBytes, err := ioutil.ReadFile("/etc/apk/repositories")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -83,7 +84,7 @@ func (hr *APKRepository) Delete() error {
|
||||||
}
|
}
|
||||||
lines := strings.Split(string(fileBytes), "\n")
|
lines := strings.Split(string(fileBytes), "\n")
|
||||||
for _, line := range lines {
|
for _, line := range lines {
|
||||||
fmt.Println(line)
|
fmt.Printf("DEBUG TODO %s", line)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,6 @@ func (sys *SystemService) Start() error {
|
||||||
}
|
}
|
||||||
} else if sys.Type == "openrc" {
|
} else if sys.Type == "openrc" {
|
||||||
_, stdErr, err := utils.RunSystemCommand("service", sys.Name, "stop")
|
_, stdErr, err := utils.RunSystemCommand("service", sys.Name, "stop")
|
||||||
fmt.Printf("ERROR [%v]", err)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("System service %s \n * Enable error:\n - %s", sys.Name, stdErr)
|
return fmt.Errorf("System service %s \n * Enable error:\n - %s", sys.Name, stdErr)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue