File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 126126# 20240805 Remove CPUshares to match Splunk 9.3 and replace MemoryLimit with MemoryMax
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
129+ # 20250506 fix version detection regex to work also for v10
129130
130131# warning : if /opt/splunk is a link, tell the script the real path or the chown will not work correctly
131132# you should have installed splunk before running this script (for example with rpm -Uvh splunk.... which will also create the splunk user if needed)
135136use Getopt::Long;
136137
137138my $VERSION ;
138- $VERSION =" 20240806a " ;
139+ $VERSION =" 20250506a " ;
139140
140141print " splunkconf-init version=$VERSION \n " ;
141142
568569
569570# examples
570571# Splunk 8.0.6 (build 152fb4b2bb96)
572+ # Splunk 10.0.0 (build ef4e484d5eac)
571573# Splunk Universal Forwarder 9.2.1 (build 78803f08aabb)
572- my $RES = $VERSIONFULL =~ / Splunk\s +[\w\ s ]*(\d +)\. (\d +)\. (\d +)/ ;
574+ my $RES = $VERSIONFULL =~ / Splunk\s +[a-zA-Z \ s ]*(\d +)\. (\d +)\. (\d +)\s + \( / ;
573575if ($RES ) {
574576 $SPLVERSIONMAJ =$1 ;
575577 $SPLVERSIONMIN =$2 ;
You can’t perform that action at this time.
0 commit comments