From c97f621d599fb4a34541653066a74d26801bcfa6 Mon Sep 17 00:00:00 2001 From: Denis Ismailaj Date: Wed, 6 Apr 2022 16:49:20 +0200 Subject: [PATCH] Fix missing fallback code --- cmd/serf/command/agent/invoke.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/serf/command/agent/invoke.go b/cmd/serf/command/agent/invoke.go index 954716c53..7f09b661b 100644 --- a/cmd/serf/command/agent/invoke.go +++ b/cmd/serf/command/agent/invoke.go @@ -69,6 +69,9 @@ func invokeEventScript(logger *log.Logger, script string, self serf.Member, even } else { logger.Printf("[DEBUG] agent: Event '%s' script could not be read. Assuming no shebang present.", event.EventType().String()) + bin = "/bin/sh" + flag = "-c" + args = script } }