neb/tools/repo/check.d/90-docker-compose-config.sh

15 lines
391 B
Bash
Raw Permalink Normal View History

2023-10-22 17:45:03 +02:00
#!/bin/sh
set -e
for s in servers/*; do
2023-10-26 17:04:50 +02:00
sum="$(cat $s/docker-compose.d/*.yml | sha1sum)"
if [ -f .neb/$s/dc-sum.txt ]; then
[ "$(cat .neb/$s/dc-sum.txt)" = "$sum" ] && continue
else
mkdir -p .neb/$s
fi
2023-10-22 17:45:03 +02:00
echo "checking $s..."
HOSTNAME=$(echo $s | sed 's/servers\///') bash tools/server-docker-compose.sh config -q
2023-10-26 17:04:50 +02:00
echo "$sum" > .neb/$s/dc-sum.txt
2023-10-22 17:45:03 +02:00
done