implement enable disable with client side display and mod

This commit is contained in:
bel
2020-03-16 02:10:31 +00:00
parent bdfdb41bba
commit 9ec88a5ce8
6 changed files with 119 additions and 6 deletions

View File

@@ -53,6 +53,9 @@ func newBashJob(schedule, sh string, title ...string) (*Job, error) {
j.Title = title[0]
}
j.foo = func() {
if j.Disabled {
return
}
cmd := exec.Command("bash", "-c", sh)
j.LastRun = time.Now()
start := time.Now()