Add Version to update.sh for Darwin

Changes:

* Add version to update.sh for Darwin
This commit is contained in:
Michael Erdely 2025-01-25 15:30:25 -05:00
parent 653ee79a67
commit f3e4386480
Signed by: mike
SSH key fingerprint: SHA256:ukbnfrRMaRYlBZXENtBTyO2jLnql5AA5m+SzZCfYQe0
5 changed files with 18 additions and 6 deletions

View file

@ -1,2 +1,2 @@
9.2.0.11
9.2.0.11
9.2.0.12
9.2.0.12

View file

@ -29,7 +29,7 @@
"id": {
"group": null,
"name": "TA-nix",
"version": "9.2.0.11"
"version": "9.2.0.12"
},
"license": {
"name": "Splunk Software License Agreement",

View file

@ -120,12 +120,16 @@ elif [ "$KERNEL" = "Darwin" ] ; then
gsub(/^.*Title: /, "", line);
gsub(/, Version:.*$/, "", line);
PACKAGE="package=\"" line "\""
version = $0;
gsub(/^.*Title: [^,]+, Version: /, "", version);
gsub(/, Size:.*$/, "", version);
VERSION="latest_package_version=\"" version "\""
RECOMMENDED=""
RESTART=""
TOTAL=TOTAL+1
if ( $0 ~ /Recommended: YES/ ) { RECOMMENDED="is_recommended=\"true\"" }
if ( $0 ~ /Action: restart/ ) { RESTART="restart_required=\"true\"" }
printf "%s %s %s %s\n", DATE, PACKAGE, RECOMMENDED, RESTART
printf "%s %s %s %s\n", DATE, PACKAGE, VERSION, RECOMMENDED, RESTART
}
}'

View file

@ -17,7 +17,7 @@ docs_section_override = AddOns:released
[launcher]
author = Michael Erdely
version = 9.2.0.11
version = 9.2.0.12
description = Technical Add-on for Unix and Linux
#[package]
@ -26,5 +26,5 @@ description = Technical Add-on for Unix and Linux
[id]
name = TA-unix
version = 9.2.0.11
version = 9.2.0.12

View file

@ -1,5 +1,13 @@
# Technical Add-on for Unix and Linux
## Version 9.2.0.12 (2025-01-25)
Add Version to update.sh for Darwin
Changes:
* Add version to update.sh for Darwin
## Version 9.2.0.11 (2025-01-25)
Fix Darwin Scripts and Document Sudo