Add support for visability mode

This commit is contained in:
David Gambarin
2022-12-26 11:04:51 +02:00
parent 9ec8858a15
commit 27d1d00379
26 changed files with 1014 additions and 103 deletions

View File

@@ -2,5 +2,12 @@ add_executable(cpnano_base64 cpnano_base64.cc base64.cc)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COMPILE_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_LINK_FLAGS}")
add_custom_command(TARGET cpnano_base64
POST_BUILD
COMMAND strip $<TARGET_FILE:cpnano_base64> -o $<TARGET_FILE:cpnano_base64>.strip
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cpnano_base64>.strip ${CMAKE_INSTALL_PREFIX}/bin/$<TARGET_FILE:cpnano_json>.strip
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cpnano_base64>.strip ${CMAKE_INSTALL_PREFIX}/orchestration/$<TARGET_FILE:cpnano_json>
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:cpnano_base64>.strip ${CMAKE_INSTALL_PREFIX}/wlp_standalone/$<TARGET_FILE:cpnano_json>
)
install(TARGETS cpnano_base64 DESTINATION bin/)
install(TARGETS cpnano_base64 DESTINATION orchestration/)

Binary file not shown.

View File

@@ -68,7 +68,7 @@ public:
return genError("Cannot execute an empty command");
}
uint max_ms_tmout = getConfigurationWithDefault(10000u, "Infra", "Shell Command Timeout");
uint max_ms_tmout = getConfigurationWithDefault(400000u, "Infra", "Shell Command Timeout");
if (ms_tmout > max_ms_tmout) {
return genError("Provided timeout is too long, max timeout is " + to_string(max_ms_tmout));
}