diff options
| author | Johan Lundberg <lundberg@nordu.net> | 2015-02-13 17:44:59 +0100 |
|---|---|---|
| committer | Johan Lundberg <lundberg@nordu.net> | 2015-02-13 17:44:59 +0100 |
| commit | a865ae975c75b1ce321c4e56c9fbd0625623c4a7 (patch) | |
| tree | 2884b3e48f44cad826586b3c884d537d087c3f46 /start.sh | |
init
Diffstat (limited to 'start.sh')
| -rw-r--r-- | start.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..3b48694 --- /dev/null +++ b/start.sh @@ -0,0 +1,21 @@ +#!/bin/sh -x + +# shibboleth-identity-provider source dir +cd /opt/shibboleth-identity-provider-${IDP_VERSION} + +case "$*" in + start) + # Upgrade/Recreate war + ./bin/install.sh -Didp.src.dir /opt/shibboleth-identity-provider-${IDP_VERSION}/ -Didp.target.dir /opt/shibboleth-idp + ;; + install) +# Fresh install +cat>/tmp/entity_id<<EOF +idp.entityID= ${ENTITY_ID} +EOF + ./bin/install.sh -Didp.src.dir /opt/shibboleth-identity-provider-${IDP_VERSION}/ -Didp.target.dir /opt/shibboleth-idp -Didp.host.name ${HOSTNAME} -Didp.scope ${SCOPE} -Didp.sealer.password ${COOKIE_PASSWORD} -Didp.keystore.password ${TLS_PASSWORD} -Didp.merge.properties /tmp/entity_id -Didp.noprompt + ;; + debug) + /bin/bash + ;; +esac |
