aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoransible_admin <capsul@cyberia.club>2021-04-02 04:17:20 +0000
committeransible_admin <capsul@cyberia.club>2021-04-02 04:17:20 +0000
commitbcc860670d8d6507ad6442dd2d44e9f8c507def1 (patch)
tree6e38942439d282f975fa6d65be6668f118fed6e9
parente4110dfca5dc29c7cbdd7d44c79a9f562c3c1d85 (diff)
downloadops-handbook-bcc860670d8d6507ad6442dd2d44e9f8c507def1.tar.gz
ops-handbook-bcc860670d8d6507ad6442dd2d44e9f8c507def1.tar.bz2
fix bugs
-rw-r--r--ansible/roles/common/templates/cyberia-alpine-metrics.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/common/templates/cyberia-alpine-metrics.j2 b/ansible/roles/common/templates/cyberia-alpine-metrics.j2
index f9f5dd8..7588317 100644
--- a/ansible/roles/common/templates/cyberia-alpine-metrics.j2
+++ b/ansible/roles/common/templates/cyberia-alpine-metrics.j2
@@ -1,7 +1,7 @@
#!/bin/sh
-apk update
+apk update > /dev/null
-outdated_pkgs=$(apk list --upgradable | wc -l)
+outdated_pkgs=$(apk list --upgradeable | wc -l)
prom-collect alpine_upgrades_pending $outdated_pkgs