diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-14 19:36:44 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-14 19:36:44 +1200 |
commit | fd8ac5fd906b398f86ecd04820fedb86b8e39a9a (patch) | |
tree | 76d9628982d633e4764dd790732cc5e09203726a | |
parent | f9b7908c1fe0c04e9dcb93b4261b9fe0b4bb1617 (diff) | |
download | trackermap-server-fd8ac5fd906b398f86ecd04820fedb86b8e39a9a.tar.gz trackermap-server-fd8ac5fd906b398f86ecd04820fedb86b8e39a9a.tar.bz2 trackermap-server-fd8ac5fd906b398f86ecd04820fedb86b8e39a9a.zip |
Create data manager if url provided (fix #954)
-rw-r--r-- | src/org/traccar/Context.java | 4 |
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); |