diff --git a/.gitignore b/.gitignore index 63d1572..1197867 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ # development -servers/ryuk \ No newline at end of file +servers/ryuk +# tempfiles +.neb/ \ No newline at end of file diff --git a/tools/repo/check.d/90-docker-compose-config.sh b/tools/repo/check.d/90-docker-compose-config.sh index e1e0393..9463ce3 100755 --- a/tools/repo/check.d/90-docker-compose-config.sh +++ b/tools/repo/check.d/90-docker-compose-config.sh @@ -3,6 +3,13 @@ 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 \ No newline at end of file