master
李光春 2 years ago
parent 97132fd582
commit 343bc45061

@ -7,7 +7,7 @@ import (
"time"
"github.com/glycerine/rbuf"
"github.com/qiniu/log"
log "github.com/sirupsen/logrus"
)
// The new broadcast

@ -31,7 +31,7 @@ import (
"github.com/codeskyblue/gosuv/pushover"
"github.com/codeskyblue/kexec"
"github.com/kennygrant/sanitize"
"github.com/qiniu/log"
log "github.com/sirupsen/logrus"
)
type FSMState string

@ -10,7 +10,7 @@ import (
"path/filepath"
"github.com/equinox-io/equinox"
"github.com/qiniu/log"
log "github.com/sirupsen/logrus"
"github.com/urfave/cli"
)

@ -7,7 +7,7 @@ import (
"runtime"
"time"
"github.com/qiniu/log"
log "github.com/sirupsen/logrus"
)
var ErrGoTimeout = errors.New("GoTimeoutFunc")

@ -25,8 +25,8 @@ import (
"github.com/go-yaml/yaml"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/qiniu/log"
_ "github.com/shurcooL/vfsgen"
log "github.com/sirupsen/logrus"
)
var defaultConfigDir string
@ -352,10 +352,10 @@ func (s *Supervisor) hAddProgram(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusForbidden)
return
}
envs := strings.Split(strings.ReplaceAll(r.FormValue("environ"),":",";"),";")
envs := strings.Split(strings.ReplaceAll(r.FormValue("environ"), ":", ";"), ";")
envsok := []string{}
for _, env := range envs {
if strings.Contains(env, "="){
if strings.Contains(env, "=") {
envsok = append(envsok, env)
}
}

Loading…
Cancel
Save