From 94aba6a15410bfb43f1b391ad9a7f19a4c04a2d5 Mon Sep 17 00:00:00 2001 From: gitea Date: Wed, 5 Jul 2023 20:57:44 +0800 Subject: [PATCH] [mmodify] add localip.sh execution in this script, will executed every hour --- alert/docker_alarm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alert/docker_alarm.sh b/alert/docker_alarm.sh index d3966c4..39940c0 100644 --- a/alert/docker_alarm.sh +++ b/alert/docker_alarm.sh @@ -1,5 +1,7 @@ #!/bin/bash +/usr/bin/bash /opt/scripts/update/localip.sh + docker ps -a --format "table {{.Names}}\t{{.Status}}" > /opt/logs/docker_status.log while read line; do echo $line | grep -q 'Exited'