File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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)
136137use Getopt::Long;
137138
138139my $VERSION ;
139- $VERSION =" 20250506a " ;
140+ $VERSION =" 20250506b " ;
140141
141142print " splunkconf-init version=$VERSION \n " ;
142143
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 +)/ ;
575576if ($RES ) {
576577 $SPLVERSIONMAJ =$1 ;
577578 $SPLVERSIONMIN =$2 ;
You can’t perform that action at this time.
0 commit comments