summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-29 16:00:44 +0300
committerGitHub <[email protected]>2021-01-29 16:00:44 +0300
commitc448653a76d696cc7c909791b8891a0dab64d430 (patch)
tree430c136926a6ea7cde0198627f4e3158d14038a5
parent408e5c38571e9426dd31c75deddfa6407276a9c5 (diff)
parent5a012646aa34250e76f99f39f405a2a4a1aa15c3 (diff)
Merge pull request #512 from spiral/fix/command_limitation
fix(server): remove command limitaion
-rw-r--r--plugins/server/plugin.go5
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])