Skip to content
Snippets Groups Projects

cronstatus: add short status on top of details

Merged Hahn Axel (hahn) requested to merge update_for_newer_openssl into master
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -26,6 +26,7 @@
# 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page
# 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
# 2024-04-24 v2.4 <axel.hahn@unibe.ch> add short status on top of details
# ======================================================================
@@ -96,6 +97,8 @@ else
ph.setStatus "ok"
fi
ph.status Cronjob status $( echo "$out" | tail -1 )
$statusScript -s
echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | tr '|' ':'
fi
ph.exit
Loading