summaryrefslogtreecommitdiff
path: root/scripts/do-update.sh
blob: 5dc38700dc7d2429cd947d2ce5efbb8afbebe430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

cd /var/cache/metadata_git.swamid.se && make update
rsync -a /opt/metadata/swamid-internal/* /opt/metadata/swamid-qa

./scripts/download-pending
cd /var/cache/metadata_git.swamid.se/metadata || exit 2
for file in `ls swamid-internal/` ; do
        if [ -r swamid-qa/$file ]; then
		diff swamid-internal/$file swamid-qa/$file || exit 1
	fi
done
#/opt/metadata/scripts/update-and-validate.sh