diff --git a/extras/chat.db.dist b/extras/stationchat.db.dist similarity index 100% rename from extras/chat.db.dist rename to extras/stationchat.db.dist diff --git a/extras/swgchat.cfg.dist b/extras/swgchat.cfg.dist index a018b1e..494097e 100644 --- a/extras/swgchat.cfg.dist +++ b/extras/swgchat.cfg.dist @@ -11,7 +11,7 @@ registrar_address = 127.0.0.1 registrar_port = 5000 # Path to the application database -database_path = chat.db +database_path = var/stationapi/stationchat.db # When set to true, binds to the config address; otherwise, binds on any interface bind_to_ip = false diff --git a/src/stationchat/main.cpp b/src/stationchat/main.cpp index 1fb3fe9..e924d59 100644 --- a/src/stationchat/main.cpp +++ b/src/stationchat/main.cpp @@ -74,7 +74,7 @@ StationChatConfig BuildConfiguration(int argc, const char* argv[]) { "port for registrar connections") ("bind_to_ip", po::value(&config.bindToIp)->default_value(false), "when set to true, binds to the config address; otherwise, binds on any interface") - ("database_path", po::value(&config.chatDatabasePath)->default_value("chat.db"), + ("database_path", po::value(&config.chatDatabasePath)->default_value("var/stationapi/stationchat.db"), "path to the sqlite3 database file") ;