blob: 1db6f057e85ca3bf7f9b37a5eec657d796eb20ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/bash
set -e
TMP=$(mktemp -d)
PUBDIR=/var/www/html/entity-configurations/ADFSToolkit
# More versions to come - hopefully
# shellcheck disable=SC2043
for version in "v2.3.0"; do
VERSION_DIR="${PUBDIR}/${version}"
VERSION_FILE="${VERSION_DIR}/SWAMID_FederationDefaults.zip"
if [ ! -f "${VERSION_FILE}" ]; then
if [ ! -d "${TMP}"/repo ]; then
git clone https://github.com/fedtools/federation-settings.git "${TMP}/repo"
fi
cd "${TMP}"/repo
git checkout "${version}"
cd ADFSToolkit/config/federation/
zip SWAMID_FederationDefaults.zip -r SWAMID
mkdir -p "${VERSION_DIR}"
mv SWAMID_FederationDefaults.zip "${PUBDIR}"/${version}/
fi
done
rm -rf "${TMP}"
|