diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23246c97772cb7f001ac4cfc923df475c6dc6154..faf5b4eec7b0735096901ef96069e73cccfe6f1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,7 +31,7 @@ compile: - git submodule update --init --recursive - mkdir build - cd build - - cmake -DPRINT_JSON=ON .. + - cmake -DCURL_STATICLIB=ON -DPRINT_JSON=ON .. - make testDebian: diff --git a/src/agent/main.cpp b/src/agent/main.cpp index 564ecdabfea16c0e151b4679c46925dee9e073cc..7247dde8b7c308674a1ca2a17dfc6044327a7f5b 100644 --- a/src/agent/main.cpp +++ b/src/agent/main.cpp @@ -29,8 +29,10 @@ int main() { + #ifdef UPDATE_JSON std::cout << "datasid-conf.json"<< boost::filesystem::file_size("/home/lais/agent/conf/datasid-conf.json"); + #endif datasid_agent(); send_inventory(); send_net_bandwidth();