Skip to content

Commit

Permalink
Fix add variables into mcf postgres properties file for externalized
Browse files Browse the repository at this point in the history
PostgreSQL for EE
  • Loading branch information
otavard committed Oct 4, 2024
1 parent cf579e0 commit e2bffd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions datafari-tomcat/conf-datafari/mcf-postgres.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
HOST=localhost
PORT=5432
DATABASE=manifoldcf
USER=postgres
HOST=@POSTGRESQLHOSTNAME@
PORT=@POSTGRESQLPORT@
DATABASE=@POSTGRESQLDATABASE@
USER=@POSTGRESQLUSERNAME@
PASSWORD=@POSTGRESPASSWORD@
TABLENAME=repohistory
6 changes: 6 additions & 0 deletions linux/bin/init-datafari.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,12 @@ init_postgresql() {
sed -i -e "s~@POSTGRESQLPORT@~${POSTGRESQL_PORT}~g" $MCF_HOME/properties-global.xml >>$installerLog 2>&1
sed -i -e "s~@POSTGRESQLDATABASE@~${POSTGRESQL_DATABASE}~g" $MCF_HOME/properties-global.xml >>$installerLog 2>&1
sed -i -e "s~@POSTGRESQLUSERNAME@~${POSTGRESQL_USERNAME}~g" $MCF_HOME/properties-global.xml >>$installerLog 2>&1

sed -i -e "s~@POSTGRESQLHOSTNAME@~${POSTGRESQL_HOSTNAME}~g" $TOMCAT_HOME/conf/mcf-postgres.properties >>$installerLog 2>&1
sed -i -e "s~@POSTGRESQLPORT@~${POSTGRESQL_PORT}~g" $TOMCAT_HOME/conf/mcf-postgres.properties >>$installerLog 2>&1
sed -i -e "s~@POSTGRESQLDATABASE@~${POSTGRESQL_DATABASE}~g" $TOMCAT_HOME/conf/mcf-postgres.properties >>$installerLog 2>&1
sed -i -e "s~@POSTGRESQLUSERNAME@~${POSTGRESQL_USERNAME}~g" $TOMCAT_HOME/conf/mcf-postgres.properties >>$installerLog 2>&1

}

init_password_postgresql() {
Expand Down

0 comments on commit e2bffd2

Please sign in to comment.