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