Skip to content
Snippets Groups Projects
Commit 9f5cb199 authored by Robert Butora's avatar Robert Butora
Browse files

docker/db: removes db_schema from params (set by db-user at db init)

parent b8d0d86d
No related branches found
No related tags found
No related merge requests found
...@@ -2,18 +2,16 @@ ...@@ -2,18 +2,16 @@
class DbConnArgs class DbConnArgs
{ {
public String uri; public String uri;
public String schema;
public String user_name; public String user_name;
public String password; public String password;
public String uri() {return uri;} public String uri() {return uri;}
public String schema() {return schema;}
public String userName() {return user_name;} public String userName() {return user_name;}
public String password() {return password;} public String password() {return password;}
public String toString() public String toString()
{ {
return uri + " schema[" + schema + "] " + user_name; return uri + " " + user_name;
} }
} }
...@@ -37,7 +37,6 @@ class SearchSettings ...@@ -37,7 +37,6 @@ class SearchSettings
{ {
DbConnArgs dbConnArgs = new DbConnArgs(); DbConnArgs dbConnArgs = new DbConnArgs();
dbConnArgs.uri = properties.getProperty("db_uri","jdbc:postgresql://localhost:5432/vialactea").strip(); dbConnArgs.uri = properties.getProperty("db_uri","jdbc:postgresql://localhost:5432/vialactea").strip();
dbConnArgs.schema = properties.getProperty("db_schema","ivoa").strip();
dbConnArgs.user_name = properties.getProperty("db_user_name","").strip(); dbConnArgs.user_name = properties.getProperty("db_user_name","").strip();
dbConnArgs.password = properties.getProperty("db_password","").strip(); dbConnArgs.password = properties.getProperty("db_password","").strip();
......
# database with 'obscore' table # database with 'obscore' table
# db_uri=jdbc:postgresql://localhost:5432/vialactea # db_uri=jdbc:postgresql://localhost:5432/vialactea
# db_schema=ivoa
db_user_name= db_user_name=
db_password= db_password=
...@@ -21,7 +21,6 @@ echo "<Context docBase=\"$WEBAPP_DIR\"/>" > $CATALINA_BASE/conf/Catalina/localho ...@@ -21,7 +21,6 @@ echo "<Context docBase=\"$WEBAPP_DIR\"/>" > $CATALINA_BASE/conf/Catalina/localho
# configure DB with ObsTAP # configure DB with ObsTAP
{ {
echo "db_uri=$DB_URI" echo "db_uri=$DB_URI"
echo "db_schema=$DB_SCHEMA"
echo "db_user_name=$DB_USERNAME" echo "db_user_name=$DB_USERNAME"
echo "db_password=$DB_PASSWORD" echo "db_password=$DB_PASSWORD"
} > $WEBAPP_DIR/WEB-INF/classes/search.properties } > $WEBAPP_DIR/WEB-INF/classes/search.properties
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment