2022-11-01 00:22:49 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
FAIL=""
|
|
|
|
PASS=""
|
|
|
|
|
|
|
|
echo "=============================="
|
|
|
|
echo "========== STARTING =========="
|
|
|
|
echo "=============================="
|
2023-03-27 09:27:46 -07:00
|
|
|
for servicedir in /home/joey/homelab/jafner-net/config/*
|
2022-11-01 00:22:49 -07:00
|
|
|
do
|
|
|
|
service="$(basename $servicedir)"
|
|
|
|
echo "===== CHECKING $service"
|
|
|
|
cd $servicedir
|
|
|
|
{
|
|
|
|
docker-compose config > /dev/null 2>&1 &&
|
|
|
|
PASS+="$service\n"
|
|
|
|
} || {
|
|
|
|
FAIL+="$service\n"
|
|
|
|
}
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "=============================="
|
|
|
|
echo "========== ALL DONE =========="
|
|
|
|
echo "=============================="
|
|
|
|
|
|
|
|
echo "========== PASSED ============"
|
|
|
|
echo -e "$PASS"
|
|
|
|
|
|
|
|
echo "========== FAILED ============"
|
|
|
|
echo -e "$FAIL"
|