summaryrefslogtreecommitdiff
path: root/scripts/update-and-validate.sh
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
committerBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
commit467dbdbf3d7212e25ee69daeaadd8adba7c7c5b8 (patch)
treed3576d5f2d4b5cc676c0a12ef8f8c3c83b474bf5 /scripts/update-and-validate.sh
parentbc1d55080e5d42e6ef2bba892d640aa8f68bbc90 (diff)
Moved files to make ths repo signed
Diffstat (limited to 'scripts/update-and-validate.sh')
-rwxr-xr-xscripts/update-and-validate.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/scripts/update-and-validate.sh b/scripts/update-and-validate.sh
deleted file mode 100755
index a4a1bddb..00000000
--- a/scripts/update-and-validate.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# Used on metadata.swamid.se and metadata.lab.swamid.se
-
-update()
-{
-# echo "git pull"
- git pull -q || return $?
-
- # Remove old entitys from DB
- ls swamid-edugain/*.xml swamid-2.0/*.xml swamid-testing/*.xml | sed 's@swamid-.*/\(.*\).xml@.time/\1.validate@' | sort > /tmp/$$.xml
- ls .time/*.validate > /tmp/$$.time
- comm -13 /tmp/$$.xml /tmp/$$.time | while read file; do
- docker exec swamid-metadata-sp /var/www/scripts/removeEntity.bash /opt/metadata/$file
- done
- rm /tmp/$$.xml /tmp/$$.time
-
- # remove some flag-files to get DB refreshed
- if [ $(find .time/ -ctime +15 -type f | wc -l) -ne 0 ]; then
- rm `find .time/ -ctime +15 -type f | 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
-
- # update TestResults from release-check -> DB
- docker exec swamid-metadata-sp php /var/www/scripts/updateTestResults.php
-
- # Cleanup Pending-queue
- docker exec swamid-metadata-sp php /var/www/scripts/cleanupPending.php
-}
-
-cd /opt/metadata || exit 1
-update
-# to be able to show non-swamid entities on web-page
-wget -qO swamid-2.0.xml https://mds.swamid.se/md/swamid-2.0.xml