Skip to content
Snippets Groups Projects

cronstatus: add NO_COLOR=1 to supress color and emojis

Merged Hahn Axel (hahn) requested to merge docker-checks into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -24,13 +24,14 @@
# 2022-02-28 v1.5 <axel.hahn@iml.unibe.ch> fix output of error counter
# 2022-08-23 v2.0 <axel.hahn@iml.unibe.ch> simplify it: use cronstatus.sh (it has exitcode >0 on errors now)
# 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page
# 2020-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output
# 2023-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output
# 2024-04-03 v2.3 <axel.hahn@unibe.ch> add NO_COLOR=1 to supress color and emojis
# ======================================================================
. $( dirname $0 )/inc_pluginfunctions
export self_APPVERSION=2.2
export self_APPVERSION=2.3
statusScript=/opt/cronwrapper/cronstatus.sh
@@ -85,6 +86,7 @@ if [ ! -x "${statusScript}" ]; then
ph.status Cronjob status - script not found/ not executable: "${statusScript}"
else
export NO_COLOR=1
out=$( $statusScript )
rc=$?
Loading