From a247f7a9a17057cd169d7452d92c2c63b7a9a6a1 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Sat, 11 Sep 2021 15:58:22 +0800 Subject: [PATCH] =?UTF-8?q?feature:=E6=96=B0=E5=A2=9Etsg-diagnose-periodic?= =?UTF-8?q?al=E5=92=8Ctsg-diagnose=E6=90=9C=E7=B4=A2=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 1 + cmake/Package.cmake | 4 +++- scripts/tsg-diagnose.sh | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 scripts/tsg-diagnose.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a81fe9..808ab90 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,6 +32,7 @@ cache: - cd $BUILD_PADDING_PREFIX/$CI_PROJECT_PATH - chmod 0755 ./scripts/tsg-diagnose-oneshot - chmod 0755 ./scripts/tsg-diagnose-periodical + - chmod 0755 ./scripts/tsg-diagnose.sh - chmod 0755 ./etc/certs_import/certs/tool - chmod +x ./ci/travis.sh tags: diff --git a/cmake/Package.cmake b/cmake/Package.cmake index 3260f70..1c70c10 100644 --- a/cmake/Package.cmake +++ b/cmake/Package.cmake @@ -28,7 +28,9 @@ install(FILES service/tsg-diagnose-periodical.service DESTINATION /usr/lib/syste install(FILES service/tsg-diagnose.conf DESTINATION /usr/lib/tmpfiles.d) install(FILES images_build/server_dns/dnsmasq.conf DESTINATION /opt/tsg/tsg-diagnose/etc/) install(DIRECTORY images/ DESTINATION ./images) -install(DIRECTORY scripts/ DESTINATION ./scripts) +install(FILES scripts/tsg-diagnose-periodical DESTINATION ./scripts) +install(FILES scripts/tsg-diagnose-oneshot DESTINATION ./scripts) +install(FILES scripts/tsg-diagnose.sh DESTINATION /etc/profile.d/) install(DIRECTORY etc/certs_import/ DESTINATION ./etc/.certs_import) include(CPack) diff --git a/scripts/tsg-diagnose.sh b/scripts/tsg-diagnose.sh new file mode 100644 index 0000000..0930756 --- /dev/null +++ b/scripts/tsg-diagnose.sh @@ -0,0 +1 @@ +export PATH=/opt/tsg/tsg-diagnose/scripts:$PATH