update check service for container
This commit is contained in:
parent
743a5e822d
commit
c79178dea0
@ -1,4 +1,5 @@
|
||||
SERVICES=("syncthing@vincent" "named" "mariadb" "nginx" "php-fpm" "gitea" "tt-rss" "gunicorn-chainetv.socket" "gunicorn-supysonic" "rsyncd.service" "fail2ban" "supysonic-daemon" "home-assistant" "radicale")
|
||||
SERVICES=("syncthing@vincent" "mariadb" "nginx" "php-fpm" "gitea" "tt-rss" "gunicorn-chainetv.socket" "gunicorn-supysonic" "rsyncd.service" "fail2ban" "supysonic-daemon" "home-assistant" "radicale")
|
||||
CONTAINER=("pihole")
|
||||
HOST=$(hostname)
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
@ -21,3 +22,8 @@ do
|
||||
fi
|
||||
echo ""
|
||||
done
|
||||
for container in ${CONTAINER[@]}
|
||||
do
|
||||
status=$(docker ps | grep $container >/dev/null && (echo active) || (echo inactive))
|
||||
echo -e "$container is $status"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user