Commit b48e1245 authored by j.hoerdt's avatar j.hoerdt
Browse files

use env vars as creds but don't change cli

parent 5f9448c8
......@@ -160,10 +160,10 @@ public class Main {
System.setProperty("http.agent", http_agent);
Main.logger.fine("initializing neo4j driver.");
initialize_driver(AuthTokens.basic(args[0], args[1]));
initialize_driver(AuthTokens.basic(System.getenv("SENSOR2GRAPH_GRAPHDB_USER"), System.getenv("SENSOR2GRAPH_GRAPHDB_PASS")));
Main.logger.fine("setting pid registry credentials");
pid_registry_credentials = new PasswordAuthentication(args[2], args[3].toCharArray());
pid_registry_credentials = new PasswordAuthentication(System.getenv("SENSOR2GRAPH_PIDREG_USER"), System.getenv("SENSOR2GRAPH_PIDREG_PASS").toCharArray());
try {
test_auth();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment