Fix: Update the sysstat script platform versions 04/73404/1
authorAnil Belur <abelur@linuxfoundation.org>
Sun, 16 Feb 2025 02:33:26 +0000 (12:33 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 16 Feb 2025 02:43:26 +0000 (12:43 +1000)
Change-Id: I4e23e8b73a97f9ea1b0700d712c003fd9d880986
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-sysstat-platform-versions-0da394913af528a7.yaml [new file with mode: 0644]
shell/sysstat.sh

diff --git a/releasenotes/notes/fix-sysstat-platform-versions-0da394913af528a7.yaml b/releasenotes/notes/fix-sysstat-platform-versions-0da394913af528a7.yaml
new file mode 100644 (file)
index 0000000..5bb83ba
--- /dev/null
@@ -0,0 +1,4 @@
+---
+fixes:
+  - |
+    Update the sysstat script platform versions
index 447408c..627bd3c 100644 (file)
@@ -21,17 +21,11 @@ case "$OS" in
     Ubuntu)
         os_release=$(facter operatingsystemrelease)
         case $os_release in
-            16.04|18.04|20.04)
+            18.04|20.04|22.04|24.04)
                 if ! systemctl status sysstat > /dev/null; then
                     exit 0
                 fi
                 ;;
-            14.04)
-                if [[ ! -f /etc/default/sysstat ]] || \
-                        ! grep --quiet 'ENABLED="true"' /etc/default/sysstat; then
-                    exit 0
-                fi
-                ;;
             *)
                 echo "ERROR: Unknown Release: Ubuntu $os_release"
                 exit 1