bugfix:修改tsg-diagose-oneshot安装以后没有权限的bug

This commit is contained in:
fumingwei
2021-09-11 17:12:20 +08:00
parent a247f7a9a1
commit 01dcddd636
3 changed files with 7 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ feature_branch_build:
TESTING_VERSION_BUILD: 1
extends: .build_rpm
script:
- ls -halt ./scripts
- ./ci/travis.sh
dependencies:
- images_build

View File

@@ -28,8 +28,8 @@ 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(FILES scripts/tsg-diagnose-periodical DESTINATION ./scripts)
install(FILES scripts/tsg-diagnose-oneshot 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)

View File

@@ -7,3 +7,7 @@ fi
docker load < /opt/tsg/tsg-diagnose/images/server_web.tar
docker load < /opt/tsg/tsg-diagnose/images/client.tar
docker load < /opt/tsg/tsg-diagnose/images/server_dns.tar
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
chmod 0755 /etc/profile.d/tsg-diagnose.sh