summaryrefslogtreecommitdiff
path: root/idp/shib-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'idp/shib-entrypoint.sh')
-rwxr-xr-xidp/shib-entrypoint.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/idp/shib-entrypoint.sh b/idp/shib-entrypoint.sh
index 7803c11..56ce16c 100755
--- a/idp/shib-entrypoint.sh
+++ b/idp/shib-entrypoint.sh
@@ -48,13 +48,15 @@ if [ -n "$IDP_PERSISTENTID_SALT" ]; then
-e "/idp.persistentId.salt/ s/changethistosomethingrandom/$IDP_PERSISTENTID_SALT/" /opt/shibboleth-idp/conf/saml-nameid.properties
# add xml conf to attribute-resolver
if ! grep "%{idp.persistentId.sourceAttribute}" /opt/shibboleth-idp/conf/attribute-resolver.xml ; then
- sed -i '/<!-- eduPersonTargetdID placeholder -->/r /opt/template-config/edupersontargetdid.xml.add' /opt/shibboleth-idp/conf/attribute-resolver.xml
+ sed -i '/<!-- eduPersonTargetdID placeholder -->/r /opt/templates/config/edupersontargetdid.xml.add' /opt/shibboleth-idp/conf/attribute-resolver.xml
fi
fi
if [ -n "$IDP_DEBUG" ]; then
- echo "idp.loglevel.messages=DEBUG" >> $IDP_PROPERTIES
- echo "idp.loglevel.encryption=DEBUG" >> $IDP_PROPERTIES
+ if ! grep "idp.loglevel.messages=DEBUG" $IDP_PROPERTIES ; then
+ echo "idp.loglevel.messages=DEBUG" >> $IDP_PROPERTIES
+ echo "idp.loglevel.encryption=DEBUG" >> $IDP_PROPERTIES
+ fi
fi
DATADIR=/opt/data
@@ -64,8 +66,20 @@ if [ -f ${DATADIR}/credentials/idp-signing.key -a -f ${DATADIR}/credentials/idp-
cp ${DATADIR}/credentials/idp-signing.crt /opt/shibboleth-idp/credentials/idp-signing.crt
fi
+if [ -e ${DATADIR}/messages ]; then
+ cp $DATADIR/messages/* /opt/shibboleth-idp/messages/
+fi
+
if [ $IDP_DEBUG ]; then
sed -i -e '/idp.loglevel.messages/ s/INFO/DEBUG/' -e '/idp.loglevel.encryption/ s/INFO/DEBUG/' /opt/shibboleth-idp/conf/logback.xml
fi
+# Styling/view properties
+IDP_MESSAGES=/opt/shibboleth-idp/messages/messages.properties
+if [ -n "$IDP_FOOTER" ]; then
+ if ! grep "idp.footer" $IDP_PROPERTIES; then
+ echo "idp.footer=$IDP_FOOTER" >> $IDP_PROPERTIES
+ fi
+fi
+
/docker-entrypoint.sh java -jar /usr/local/jetty/start.jar $JAVA_OPTIONS