15 lines
No EOL
391 B
Bash
Executable file
15 lines
No EOL
391 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
for s in servers/*; do
|
|
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
|
|
echo "checking $s..."
|
|
HOSTNAME=$(echo $s | sed 's/servers\///') bash tools/server-docker-compose.sh config -q
|
|
echo "$sum" > .neb/$s/dc-sum.txt
|
|
done |