Remove write permissions on scripts

Accidental modifications of scripts/programs are more likely if the owner
has write permissions on the file. In addition, they are not required and
thus can be removed.
This commit is contained in:
Markus Mäkelä 2018-04-27 18:15:19 +03:00
parent cfa599aea8
commit 34aefa55c8
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -98,7 +98,9 @@ function(install_script target component)
list(FIND TARGET_COMPONENT ${component} BUILD_COMPONENT)
if(BUILD_COMPONENT GREATER -1 OR BUILD_ALL GREATER -1)
install(PROGRAMS ${target} DESTINATION ${MAXSCALE_BINDIR} COMPONENT "${component}")
install(PROGRAMS ${target} DESTINATION ${MAXSCALE_BINDIR}
PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE OWNER_READ GROUP_READ WORLD_READ
COMPONENT "${component}")
endif()
endfunction()