Skip to content

Commit

Permalink
Fixed issue with service restart on save
Browse files Browse the repository at this point in the history
  • Loading branch information
telmomarques committed Jun 27, 2020
1 parent 02fbf14 commit af3c1a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"strings"
"text/template"
)
Expand Down Expand Up @@ -39,6 +40,7 @@ func GetMetaServiceDirectoryPathForHack(hackID string) string {

func EnableService(hackID string) {
os.OpenFile(GetMetaServiceDirectoryPathForHack(hackID)+"/.enable", os.O_RDONLY|os.O_CREATE, 0644)
exec.Command("/mnt/sdcard/manu_test/configure_services.sh", hackID).Run()
}

func DisableService(hackID string) {
Expand Down

0 comments on commit af3c1a9

Please sign in to comment.