[CP] add telemetry in rpm install and systemd deploy

This commit is contained in:
LINxiansheng
2024-02-10 08:16:20 +00:00
committed by ob-robot
parent 7fa5678400
commit 165f30cbfd
8 changed files with 109 additions and 4 deletions

View File

@ -67,6 +67,9 @@ if (OB_BUILD_OPENSOURCE)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tools/rpm/systemd/profile/oceanbase-service.sh.template
${CMAKE_CURRENT_SOURCE_DIR}/tools/rpm/systemd/profile/oceanbase-service.sh
@ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tools/rpm/systemd/profile/telemetry.sh.template
${CMAKE_CURRENT_SOURCE_DIR}/tools/rpm/systemd/profile/telemetry.sh
@ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tools/rpm/systemd/profile/post_install.sh.template
${CMAKE_CURRENT_SOURCE_DIR}/tools/rpm/systemd/profile/post_install.sh
@ -140,6 +143,7 @@ install(FILES
tools/rpm/systemd/profile/post_install.sh
tools/rpm/systemd/profile/post_uninstall.sh
tools/rpm/systemd/profile/pre_uninstall.sh
tools/rpm/systemd/profile/telemetry.sh
DESTINATION profile
COMPONENT server)
endif()