use config command line parameter (needed if running more than one login server at one webserver)

This commit is contained in:
einhornimmond 2021-05-13 13:48:47 +02:00
parent e9b5f33949
commit 3df94ee88b

View File

@ -165,8 +165,11 @@ int Gradido_LoginServer::main(const std::vector<std::string>& args)
createConsoleFileAsyncLogger("emailLog", log_Path + "emailLog.txt");
// *************** load from config ********************************************
std::string cfg_Path = Poco::Path::config() + "grd_login/";
if (mConfigPath != "") {
cfg_Path = mConfigPath;
}
try {
loadConfiguration(cfg_Path + "grd_login.properties");
}