Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed or adjusted permissions on installed files #578

Merged
merged 3 commits into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions etc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# These configuration files are for reference to generate your own customized ones.
# Thus, they are installed as read-only, even for the owner.
install(
FILES nebula-graphd.conf.default nebula-storaged.conf.default nebula-metad.conf.default
DESTINATION etc
FILES
nebula-graphd.conf.default
nebula-storaged.conf.default
nebula-metad.conf.default
PERMISSIONS
OWNER_READ
GROUP_READ
WORLD_READ
DESTINATION
etc
)
25 changes: 22 additions & 3 deletions scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
install(
FILES nebula-graphd.service nebula-storaged.service nebula-metad.service utils.sh nebula.service
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
DESTINATION scripts
FILES
nebula-graphd.service
nebula-storaged.service
nebula-metad.service
nebula.service
PERMISSIONS
OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
DESTINATION
scripts
)

install(
FILES
utils.sh
PERMISSIONS
OWNER_WRITE OWNER_READ
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why utils.sh does not need executable permissions here?

Copy link
Contributor Author

@dutor dutor Jul 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As its name indicating, this is a collection of utilities, so the file is not going to be executed directly.

GROUP_READ
WORLD_READ
DESTINATION
scripts
)
11 changes: 8 additions & 3 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
install(
FILES resources/completion.json
PERMISSIONS OWNER_WRITE OWNER_READ
DESTINATION share/resources
FILES
resources/completion.json
PERMISSIONS
OWNER_WRITE OWNER_READ
GROUP_READ
WORLD_READ
DESTINATION
share/resources
)
8 changes: 6 additions & 2 deletions src/daemons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ nebula_link_libraries(


install(
TARGETS nebula-graphd nebula-storaged nebula-metad
DESTINATION bin
TARGETS
nebula-graphd
nebula-storaged
nebula-metad
DESTINATION
bin
)