summaryrefslogtreecommitdiff
path: root/apache-sp/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 /apache-sp/entrypoint.sh
parent489b5dcdaa79180ba6c9004332a4520717c27361 (diff)
Structure cleanup + docker compose
Diffstat (limited to 'apache-sp/entrypoint.sh')
-rw-r--r--apache-sp/entrypoint.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/apache-sp/entrypoint.sh b/apache-sp/entrypoint.sh
index 156b5ac..34589e3 100644
--- a/apache-sp/entrypoint.sh
+++ b/apache-sp/entrypoint.sh
@@ -29,7 +29,13 @@ if [ ! -f "$KEYDIR/private/${SP_HOSTNAME}.key" -o ! -f "$KEYDIR/certs/${SP_HOSTN
fi
# Fetch metadata
-curl http://shibboleth-docker:8080/idp/shibboleth -o /var/www/metadata.xml
+if [ -z "$SKIP_METADATA" ]; then
+ until curl http://shibboleth-docker:8080/idp/shibboleth -o /var/www/metadata.xml
+ do
+ sleep 5
+ done
+fi
+
chown -R www-data:www-data /var/www/
chmod -R a+r /var/www/