fix: only check dc when changed
This commit is contained in:
parent
2a063efcf3
commit
7c455db717
2 changed files with 10 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
# development
|
# development
|
||||||
servers/ryuk
|
servers/ryuk
|
||||||
|
# tempfiles
|
||||||
|
.neb/
|
|
@ -3,6 +3,13 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
for s in servers/*; do
|
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..."
|
echo "checking $s..."
|
||||||
HOSTNAME=$(echo $s | sed 's/servers\///') bash tools/server-docker-compose.sh config -q
|
HOSTNAME=$(echo $s | sed 's/servers\///') bash tools/server-docker-compose.sh config -q
|
||||||
|
echo "$sum" > .neb/$s/dc-sum.txt
|
||||||
done
|
done
|
Loading…
Reference in a new issue