Skip to content

Commit

Permalink
additional fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Oct 31, 2017
1 parent 8adf197 commit e3b7c44
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions configBuilder.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

echo ""
echo ""
#temp for container version
cd /scriptrun

Expand Down Expand Up @@ -440,9 +442,12 @@ IDP_PROP=${SHBCFG}/idp.properties
if test \! -f ${IDP_PROP}.dist; then
cp ${IDP_PROP} ${IDP_PROP}.dist
fi
sed "s/example.org/${SCOPE}/" ${IDP_PROP}.dist > ${IDP_PROP}.tmp
sed "s#Password= changeit#Password= ${SEALERPWD}#" ${IDP_PROP}.tmp > ${IDP_PROP}

sed "s/example.org\/idp\/shibboleth/${FQDN}\/idp\/shibboleth/" ${IDP_PROP}.dist > ${IDP_PROP}.tmp
sed "s/= example.org/= ${SCOPE}/" ${IDP_PROP}.tmp > ${IDP_PROP}.tmp2
sed "s#Password= changeit#Password= ${SEALERPWD}#" ${IDP_PROP}.tmp2 > ${IDP_PROP}
rm -f ${IDP_PROP}.tmp
rm -f ${IDP_PROP}.tmp2
#

# set ldap URL, baseDN, svcDN, pwd in ldap.properties
Expand Down Expand Up @@ -688,4 +693,5 @@ rmdir ${TMP_DIR_T}
#echo config saved to ${FILENAME:2}
echo config saved to configured local directory
sleep 5

echo ""
echo ""

0 comments on commit e3b7c44

Please sign in to comment.