-
Notifications
You must be signed in to change notification settings - Fork 14
/
install-idp
executable file
·63 lines (50 loc) · 1.54 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
61
62
63
#!/bin/bash
#
# Install or update the IdP. Runs inside a Java container.
#
# Password for trust fabric credential keystore.
TFPASS=changeit
# Password for any auto-generated cookie encryption keystore
SEALPASS=changeit
# Scope for the IdP
SCOPE=iay.org.uk
# Host name for the container
HOST=idp2.$SCOPE
# Entity ID for the identity provider
ENTITYID=https://$HOST/idp/shibboleth
DIST=/data/shibboleth-dist
IDP_HOME=/opt/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
#
# Remove the system directory from the target if present. This is only necessary once, on
# upgrade from v4.x.
#
rm -rf $IDP_HOME/system
#
# 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 \
--propertyFile idp.install.properties \
--targetDir $IDP_HOME \
--scope $SCOPE \
--entityID $ENTITYID \
--hostName $HOST \
--sealerPassword $SEALPASS \
--keystorePassword $TFPASS \
--noPrompt