Updating the sysstat script to support Ubuntu 20.04 and Docker systems
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Change-Id: I12e6daa8a04228337c99b004e67338eb8f6a8f1a
--- /dev/null
+---
+features:
+ - |
+ Update to the sysstat script to add support for
+ operating system Ubuntu 20.04 and Docker systems
echo "---> sysstat.sh"
set +e # DON'T fail build if script fails.
+if awk -F/ '$2 == "docker"' /proc/self/cgroup | read -r; then
+ exit 0
+fi
+
+
OS=$(facter operatingsystem)
case "$OS" in
Ubuntu)
os_release=$(facter operatingsystemrelease)
case $os_release in
- 16.04|18.04)
+ 16.04|18.04|20.04)
if ! systemctl status sysstat > /dev/null; then
exit 0
fi