Skip to content

Commit

Permalink
OpenConext-Attic#19 Replace default root password when still in hiber…
Browse files Browse the repository at this point in the history
…nate properties file (on other location in script)
  • Loading branch information
Remold Krol committed Sep 19, 2014
1 parent d13846f commit f8ff3dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/components/grouper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ sed -i "s/_OPENCONEXT_DOMAIN_/$OC_DOMAIN/" /usr/share/tomcat6/conf/classpath_pro
#sed -i "s/__OC__TEAMS_DB_USER__/$OC__TEAMS_DB_USER/g" /opt/tomcat/conf/classpath_properties/grouper.hibernate.properties
#sed -i "s/__OC__TEAMS_DB_PASS__/$OC__TEAMS_DB_USER/g" /opt/tomcat/conf/classpath_properties/grouper.hibernate.properties

#Still grouper.hibernate.properties:#hibernate.connection.password = c0n3xt
sed -i "s~c0n3xt~$OC__ROOT_DB_PASS~g" /opt/tomcat/conf/classpath_properties/grouper.hibernate.properties

if $UPGRADE
then
rm -Rf /usr/share/tomcat6/work/Catalina/grouper*
Expand Down Expand Up @@ -66,8 +69,6 @@ else
-e "s~^hibernate.connection.username.*~hibernate.connection.username=root~" \
-e "s~^hibernate.connection.password.*~hibernate.connection.password=$OC__ROOT_DB_PASS~"

#Still grouper.hibernate.properties:#hibernate.connection.password = c0n3xt
sed -i "s~c0n3xt~$OC__ROOT_DB_PASS~g" grouper.apiBinary-${GROUPER_VERSION}/conf/grouper.hibernate.properties

# Set properties in grouper props to
# 1. autocreate the admin groups
Expand Down

0 comments on commit f8ff3dd

Please sign in to comment.