bugfix:resolve scripts not have execution permission.

This commit is contained in:
fumingwei
2024-06-14 13:06:52 +08:00
parent 4d60028147
commit ffa9968fae
2 changed files with 5 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ set(CPACK_RPM_PACKAGE_AUTOREQPROV "no")
set(CPACK_RPM_PACKAGE_RELEASE_DIST on)
set(CPACK_RPM_DEBUGINFO_PACKAGE on)
set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/cmake/PostInstall.in)
install(FILES compose/docker-compose.yml DESTINATION ./compose)
install(FILES k8s-resource/tsg-diagnose-client.yaml DESTINATION ./k8s-resource)
install(FILES k8s-resource/tsg-diagnose-server.yaml DESTINATION ./k8s-resource)

3
cmake/PostInstall.in Normal file
View File

@@ -0,0 +1,3 @@
chmod 0755 /opt/tsg/tsg-diagnose/etc/.certs_import/certs/tool
chmod 0755 /opt/tsg/tsg-diagnose/scripts/tsg-diagnose-oneshot
chmod 0755 /opt/tsg/tsg-diagnose/scripts/tsg-diagnose-periodical