From e476282b624acb8ee03cf72cf1d353448e95b9b5 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 23 Sep 2019 15:02:43 +0200 Subject: [PATCH] Fix version detection in the Linux kickstart for Icinga 2.11 refs #1944 --- contrib/linux-agent-installer/Icinga2Agent.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/linux-agent-installer/Icinga2Agent.bash b/contrib/linux-agent-installer/Icinga2Agent.bash index aa3c8a87..6e2b30d5 100644 --- a/contrib/linux-agent-installer/Icinga2Agent.bash +++ b/contrib/linux-agent-installer/Icinga2Agent.bash @@ -109,7 +109,7 @@ redhat) esac icinga_version() { - "$ICINGA2_BIN" --version 2>/dev/null | grep -oP 'version: [rv]\K\d+\.\d+\.\d+[^\)]*' + "$ICINGA2_BIN" --version 2>/dev/null | grep -oP 'version: [rv]?\K\d+\.\d+\.\d+[^\)]*' } icinga_major() {