mirror of
https://github.com/samply/bridgehead.git
synced 2025-07-12 22:20:21 +02:00
Multiline docker stats
This commit is contained in:
@ -30,7 +30,6 @@ function hc_send(){
|
|||||||
|
|
||||||
if [ -z "$UPTIME" ]; then
|
if [ -z "$UPTIME" ]; then
|
||||||
UPTIME=$(docker ps --format '{{.Names}} {{.RunningFor}}' --filter name=bridgehead || echo "Unable to get docker statistics")
|
UPTIME=$(docker ps --format '{{.Names}} {{.RunningFor}}' --filter name=bridgehead || echo "Unable to get docker statistics")
|
||||||
UPTIME=$(echo "$UPTIME" | tr '\n' '|' || echo "Unable to get docker statistics")
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
|
Reference in New Issue
Block a user