From af3c1a9f4737bc3373326165336127dfe1a75979 Mon Sep 17 00:00:00 2001 From: Telmo Marques Date: Sat, 27 Jun 2020 14:46:50 -0400 Subject: [PATCH] Fixed issue with service restart on save --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.go b/config/config.go index abdd865..42206c8 100644 --- a/config/config.go +++ b/config/config.go @@ -5,6 +5,7 @@ import ( "fmt" "io/ioutil" "os" + "os/exec" "strings" "text/template" ) @@ -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) {