diff options
author | Björn Mattsson <bjorn@sunet.se> | 2021-12-20 09:38:03 +0100 |
---|---|---|
committer | Björn Mattsson <bjorn@sunet.se> | 2021-12-20 09:38:03 +0100 |
commit | 82c14608d10c3a3c31a2e2fa1e3c06eba8efcdf6 (patch) | |
tree | 2666a091d6efa627ed4611a174dea16a6c597c8f | |
parent | ec87da62f210439eccf93fbc1f3d11ff51478094 (diff) |
Updated scripts/update-and-validate.sh to check URL:s
-rwxr-xr-x | scripts/update-and-validate.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/update-and-validate.sh b/scripts/update-and-validate.sh index 99ba8208..532de715 100755 --- a/scripts/update-and-validate.sh +++ b/scripts/update-and-validate.sh @@ -6,8 +6,7 @@ update() # echo "git pull" git pull -q || return $? - /var/www/scripts/updateWebb.bash - + # Remove old entitys from DB ls swamid-2.0/*.xml | sed 's@swamid-2.0/\(.*\).xml@.time/\1.validate@' > /tmp/$$.xml ls .time/*.validate > /tmp/$$.time comm -13 /tmp/$$.xml /tmp/$$.time | while read file; do @@ -15,12 +14,16 @@ update() done rm /tmp/$$.xml /tmp/$$.time - # remove some to get DB refreshed + # remove some flag-files to get DB refreshed if [ $(find .time/ -ctime +15 | wc -l) -ne 0 ]; then rm `find .time/ -ctime +15 | tail -10` fi + # Update/Import "new" xml-files make -f Makefile.validate -s + + # check URL:s + docker exec swamid-metadata-sp php /var/www/scripts/checkURLs.php } cd /opt/swamid-metadata || exit 1 |