aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-14 19:36:44 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-14 19:36:44 +1200
commitfd8ac5fd906b398f86ecd04820fedb86b8e39a9a (patch)
tree76d9628982d633e4764dd790732cc5e09203726a /src/org/traccar
parentf9b7908c1fe0c04e9dcb93b4261b9fe0b4bb1617 (diff)
downloadtraccar-server-fd8ac5fd906b398f86ecd04820fedb86b8e39a9a.tar.gz
traccar-server-fd8ac5fd906b398f86ecd04820fedb86b8e39a9a.tar.bz2
traccar-server-fd8ac5fd906b398f86ecd04820fedb86b8e39a9a.zip
Create data manager if url provided (fix #954)
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/Context.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index f1fe443ed..4e6055174 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -94,7 +94,9 @@ public class Context {
Log.setupLogger(config);
}
- dataManager = new DataManager(config);
+ if (config.hasKey("database.url")) {
+ dataManager = new DataManager(config);
+ }
identityManager = dataManager;
connectionManager = new ConnectionManager(dataManager);