Skip to content

Commit

Permalink
Update jdbc.url in .ps1 (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi authored Sep 10, 2024
1 parent a14e21c commit 8144884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ function write_config_files {
(Get-Content "$OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS").replace("DBNAME","$DATABASE_NAME") | Set-Content "$OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS"

# direct creation of $DATABASE_SETTINGS - deprecated
#Set-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.url=jdbc:mysql://"$DATABASE_SERVER":$DATABASE_PORT/$DATABASE_NAME"
#Set-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.url=jdbc:mariadb://"$DATABASE_SERVER":$DATABASE_PORT/$DATABASE_NAME"
#Add-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.username=$DATABASE_USER"
#Add-Content -Path $OH_PATH/$OH_DIR/rsc/$DATABASE_SETTINGS -Value "jdbc.password=$DATABASE_PASSWORD"
}
Expand Down
2 changes: 1 addition & 1 deletion rsc/database.properties.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
jdbc.url=jdbc:mysql://DBSERVER:DBPORT/DBNAME
jdbc.url=jdbc:mariadb://DBSERVER:DBPORT/DBNAME
jdbc.username=DBUSER
jdbc.password=DBPASS

0 comments on commit 8144884

Please sign in to comment.