From 6103228ee951c7c8bf5d425471b7c440980c6044 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 9 Jun 2021 02:31:33 +0300 Subject: - Update CI (add new tests) - Add path scan with regex (find .php/.ph/.sh scripts). When found, try to stat path for potential fix for the [file not exists problem] Signed-off-by: Valery Piashchynski --- plugins/server/plugin.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'plugins/server/plugin.go') diff --git a/plugins/server/plugin.go b/plugins/server/plugin.go index 7f694f3c..00639f43 100644 --- a/plugins/server/plugin.go +++ b/plugins/server/plugin.go @@ -24,10 +24,11 @@ import ( // PluginName for the server const PluginName = "server" -// RR_RELAY env variable key (internal) -const RR_RELAY = "RR_RELAY" //nolint:stylecheck -// RR_RPC env variable key (internal) if the RPC presents -const RR_RPC = "RR_RPC" //nolint:stylecheck +// RrRelay env variable key (internal) +const RrRelay = "RR_RELAY" + +// RrRPC env variable key (internal) if the RPC presents +const RrRPC = "RR_RPC" // Plugin manages worker type Plugin struct { @@ -93,6 +94,12 @@ func (server *Plugin) CmdFactory(env Env) (func() *exec.Cmd, error) { return nil, errors.E(op, errors.Str("minimum command should be `