Skip to content

Commit 8684d65

Browse files
committed
rerelax regex to be more flexible while matching 10
1 parent 840fc4b commit 8684d65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/splunkconf-init.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
# 20240805 add both mode for cgroup v1 and v2 in the service file
128128
# 20240806 update systemd service with more cases for recent kernels
129129
# 20250506 fix version detection regex to work also for v10
130+
# 20250506 rerelax regex to be more flexible while matching 10
130131

131132
# warning : if /opt/splunk is a link, tell the script the real path or the chown will not work correctly
132133
# you should have installed splunk before running this script (for example with rpm -Uvh splunk.... which will also create the splunk user if needed)
@@ -136,7 +137,7 @@
136137
use Getopt::Long;
137138

138139
my $VERSION;
139-
$VERSION="20250506a";
140+
$VERSION="20250506b";
140141

141142
print "splunkconf-init version=$VERSION\n";
142143

@@ -571,7 +572,7 @@
571572
# Splunk 8.0.6 (build 152fb4b2bb96)
572573
# Splunk 10.0.0 (build ef4e484d5eac)
573574
# Splunk Universal Forwarder 9.2.1 (build 78803f08aabb)
574-
my $RES= $VERSIONFULL =~ /Splunk\s+[a-zA-Z\s]*(\d+)\.(\d+)\.(\d+)\s+\(/;
575+
my $RES= $VERSIONFULL =~ /Splunk\s+[a-zA-Z\s]*(\d+)\.(\d+)\.(\d+)/;
575576
if ($RES) {
576577
$SPLVERSIONMAJ=$1;
577578
$SPLVERSIONMIN=$2;

0 commit comments

Comments
 (0)