forked from iay/shibboleth-idp-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-idp
executable file
·60 lines (48 loc) · 1.61 KB
/
install-idp
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Password for any auto-generated user-facing TLS credential
UFPASS=changeit
# Password for any auto-generated cookie encryption keystore
SEALPASS=changeit
# Scope for the IdP
SCOPE=pi.local
# Host name for the container
HOST=$SCOPE
# Entity ID for the identity provider
ENTITYID=https://$HOST/idp/shibboleth
DIST=`pwd`/fetched/shibboleth-dist
IDP_HOME=`pwd`/shibboleth-idp
#
# Set up the property files for the Shibboleth install.
# These files are deleted by the install process so
# we rebuild them every time in the same way as the
# Windows installer does.
#
I=$DIST/idp.install.properties
echo \# Properties controlling the installation of the Shibboleth IdP>$I
# Uncomment the following to preserve the property files
# echo idp.no.tidy=true>>$I
S=$DIST/idp.merge.properties
echo idp.scope=$SCOPE>>$S
echo idp.entityID=$ENTITYID>>$S
#echo idp.sealer.storePassword=$SEALPASS>>$S
#echo idp.sealer.keyPassword=$SEALPASS>>$S
#
# Perform the Shibboleth IdP install process.
#
# idp.src.dir is the location of the Shibboleth IdP distribution
# idp.target.dir is the location of the installation
#
# idp.jetty.config is set to provide us with an updated jetty-base
# tree. The start.d from this tree will be in start.d.dist, while
# the old start.d from a previous install will be retained.
#
$DIST/bin/install.sh \
-Didp.property.file=idp.install.properties \
-Didp.merge.properties=idp.merge.properties \
-Didp.src.dir=$DIST \
-Didp.target.dir=$IDP_HOME \
-Didp.scope=$SCOPE \
-Didp.host.name=$HOST \
-Didp.sealer.password=$SEALPASS \
-Didp.keystore.password=$UFPASS \
-Didp.noprompt=true