Skip to content
Snippets Groups Projects
Commit f8c45855 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'update_for_newer_openssl' into 'master'

cronstatus: add short status on top of details

See merge request !260
parents d866eb15 bc6e4d92
No related branches found
No related tags found
1 merge request!260cronstatus: add short status on top of details
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
# 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page # 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 # 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-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 ...@@ -96,6 +97,8 @@ else
ph.setStatus "ok" ph.setStatus "ok"
fi fi
ph.status Cronjob status $( echo "$out" | tail -1 ) 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 '|' ':' echo "$out" | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" | tr '|' ':'
fi fi
ph.exit ph.exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment