Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed May 15, 2017
1 parent 98eff9d commit 589fdb5
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions setup-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ EOF

STOREPWD=$(uuidgen)
keytool -genkey -keyalg RSA -alias selfsigned -keystore ssl_keystore.jks -storepass $STOREPWD -validity 360 -keysize 2048 < data.conf >> ${LOGFILE} 2>&1
cp ssl_keystore.jks ${TOMCERT}/keystore.jks
cp ssl_keystore.jks ..${TOMCERT}/keystore.jks

#
# OK, next build the shibboleth sealer java keystore
Expand Down Expand Up @@ -410,9 +410,9 @@ EOF



############################################################
### make needed adjustments to IdP config and Dockerfile ###
############################################################
##############################################################################
### make needed adjustments to IdP config and Dockerfile and Tomcat config ###
##############################################################################
#
#ensure sed
command -v sed >/dev/null 2>&1 || { echo >&2 "ERROR: sed is required, but doesn't appear to be installed. Aborting..."; exit 1; }
Expand Down Expand Up @@ -480,6 +480,20 @@ EOF
fi


# configure SSL keystore password in tomcat's config file:
# conf/tomcat/server.xml replace: keystorePass="password"
#
echo "Updating Tomcat's server.xml with the generated password"

if test \! -f ${TOMCFG}/server.xml.dist; then
cp ${TOMCFG}/server.xml ${TOMCFG}/server.xml.dist
fi
sed "s#keystorePass=\"password\"#keystorePass=\"${STOREPWD}\"#" ${TOMCFG}/server.xml.dist > ${TOMCFG}/server.xml





############################################################################################################################
### notify user of next steps (docker build and docker run commands, based on burn/mount and chosen directory locations) ###
############################################################################################################################
Expand Down Expand Up @@ -519,7 +533,7 @@ else
echo "Since you have elected to use a mounted config, the steps for "
echo " you to build and run a TIER Shibboleth-IdP container are below."
echo "BUILD"
echo " You can build an image for a mounted config quite cimply using a command like this:"
echo " You can build an image for a mounted config quite simply using a command like this:"
echo " (optionally substitute any tag name (after -t) that is appropriate) "
echo ""
echo " docker build --rm -t my/shibb-idp-tier ."
Expand Down

0 comments on commit 589fdb5

Please sign in to comment.