Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Switch to using reuse for license checking
[releng/global-jjb.git]
/
shell
/
sysstat.sh
diff --git
a/shell/sysstat.sh
b/shell/sysstat.sh
index
bbc502c
..
eada1b3
100644
(file)
--- a/
shell/sysstat.sh
+++ b/
shell/sysstat.sh
@@
-11,12
+11,17
@@
echo "---> sysstat.sh"
set +e # DON'T fail build if script fails.
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
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
if ! systemctl status sysstat > /dev/null; then
exit 0
fi