diff options
author | Björn Mattsson <bjorn@sunet.se> | 2023-11-06 15:12:20 +0100 |
---|---|---|
committer | Björn Mattsson <bjorn@sunet.se> | 2023-11-06 15:12:20 +0100 |
commit | a9fa6d5551f047e976e624c1b6cc82e8c4fbb76d (patch) | |
tree | f8c0f59a36ae572e3f67045435b27e15bf9d0b44 /metadata/scripts/verify-uiinfo-urls.sh | |
parent | b4f5e684ecb318e10735414c683787d435bae7a5 (diff) |
Cleaning up old files left after we stopped signing on mds1/2. Done by Bjorn and Jocarmd-2023-11-06-v02
Diffstat (limited to 'metadata/scripts/verify-uiinfo-urls.sh')
-rwxr-xr-x | metadata/scripts/verify-uiinfo-urls.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/metadata/scripts/verify-uiinfo-urls.sh b/metadata/scripts/verify-uiinfo-urls.sh deleted file mode 100755 index b7e1f40a..00000000 --- a/metadata/scripts/verify-uiinfo-urls.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -x=$1 -if [ ! -f "$x" ]; then - exit -fi - -for i in `cat $x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath /EntityDescriptor//Extensions/UIInfo - 2>/dev/null |grep -E "https?://" | awk -F'[><]' '{print $3}' | sort -u`; do - code=`curl -L --connect-timeout 5 --retry 2 -o /dev/null --silent --head --write-out '%{http_code}\n' $i` - if [ $code -eq 405 ]; then - code=`curl -L --connect-timeout 5 --retry 2 -o /dev/null --silent --write-out '%{http_code}\n' $i` - fi - if [ $code -ne 200 ]; then - echo " Code $code: $x: $i" | sed 's/.*/[1;31m&[0m/' - fi -done |