Skip to content

Commit

Permalink
BUG: templatesJSON default value is not considered
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-s committed Mar 1, 2023
1 parent c4970c8 commit 579a9d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/cc/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2128,6 +2128,9 @@ void Application::Config::init(const Client::Application *app) {
try {
pathTemplateJson = app->configGetPath("templatesJSON");
} catch (...) {
Environment *env{Environment::Instance()};
pathTemplateJson =
env->absolutePath("@ROOTDIR@/etc/scdetect-cc/templates.json");
}
try {
const auto messagingGroup{
Expand Down

0 comments on commit 579a9d0

Please sign in to comment.