summaryrefslogtreecommitdiff
path: root/idp/shib-entrypoint.sh
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2017-09-27 15:06:13 +0200
committerMarkus Krogh <markus@nordu.net>2017-09-27 15:06:13 +0200
commit633ada5afb580dea9c755554c9a9a66b64434e4c (patch)
tree0fab0e66eada4201009edbd6bc3bafd083b6ed97 /idp/shib-entrypoint.sh
parent489b5dcdaa79180ba6c9004332a4520717c27361 (diff)
Structure cleanup + docker compose
Diffstat (limited to 'idp/shib-entrypoint.sh')
-rwxr-xr-xidp/shib-entrypoint.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/idp/shib-entrypoint.sh b/idp/shib-entrypoint.sh
new file mode 100755
index 0000000..eec7dcd
--- /dev/null
+++ b/idp/shib-entrypoint.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+
+# if there is a metadata file for the test sp, enable it.
+if [ -f /metadata/sp-metadata.xml ]; then
+ sed -i -e '/sp.nordu.dev/ s/<!--//' -e '/sp.nordu.dev/ s/-->//' /opt/shibboleth-idp/conf/metadata-providers.xml
+fi
+
+/docker-entrypoint.sh "$@"