diff options
author | SerafimArts <[email protected]> | 2021-02-01 12:15:44 +0300 |
---|---|---|
committer | SerafimArts <[email protected]> | 2021-02-01 12:15:44 +0300 |
commit | 93168b4a21cda29de47cec57d460219a8dfe4802 (patch) | |
tree | 5de8a1d19f9bb9b9511f5bfd4c93e6fe93698330 | |
parent | 18e6307987135694a09bfbc0602032dd6599e715 (diff) | |
parent | c448653a76d696cc7c909791b8891a0dab64d430 (diff) |
Merge remote-tracking branch 'origin/roadrunner-core' into roadrunner-core
-rw-r--r-- | plugins/server/plugin.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go index 9cdb8401..4fad82d1 100644 --- a/plugins/server/plugin.go +++ b/plugins/server/plugin.go @@ -85,10 +85,7 @@ func (server *Plugin) CmdFactory(env Env) (func() *exec.Cmd, error) { // create command according to the config cmdArgs = append(cmdArgs, strings.Split(server.cfg.Server.Command, " ")...) if len(cmdArgs) < 2 { - return nil, errors.E(op, errors.Str("should be in form of `php <script>")) - } - if cmdArgs[0] != "php" { - return nil, errors.E(op, errors.Str("first arg in command should be `php`")) + return nil, errors.E(op, errors.Str("minimum command should be `<executable> <script>")) } _, err := os.Stat(cmdArgs[1]) |