Skip to content

Commit

Permalink
Ensure files in /usr/lib/netdata/system are not executable. (netdata#…
Browse files Browse the repository at this point in the history
…18318)

They should not be executable in that location even if they need to be
when used as part of installing as a system service, because they are
never supposed to be run from that location, and the install-service.sh
script already handles marking them executable when installing Netdata
as a system service.
  • Loading branch information
Ferroin authored Aug 14, 2024
1 parent 09e9f4e commit 61765bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2447,13 +2447,13 @@ install(FILES
DESTINATION usr/lib/netdata/system/launchd)

configure_file(system/freebsd/rc.d/netdata.in system/freebsd/rc.d/netdata @ONLY)
install(PROGRAMS
install(FILES
${CMAKE_BINARY_DIR}/system/freebsd/rc.d/netdata
COMPONENT netdata
DESTINATION usr/lib/netdata/system/freebsd/rc.d)

configure_file(system/initd/init.d/netdata.in system/initd/init.d/netdata @ONLY)
install(PROGRAMS
install(FILES
${CMAKE_BINARY_DIR}/system/initd/init.d/netdata
COMPONENT netdata
DESTINATION usr/lib/netdata/system/initd/init.d)
Expand All @@ -2469,7 +2469,7 @@ install(FILES
DESTINATION etc/logrotate.d)

configure_file(system/lsb/init.d/netdata.in system/lsb/init.d/netdata @ONLY)
install(PROGRAMS
install(FILES
${CMAKE_BINARY_DIR}/system/lsb/init.d/netdata
COMPONENT netdata
DESTINATION usr/lib/netdata/system/lsb/init.d)
Expand All @@ -2481,13 +2481,13 @@ install(FILES
DESTINATION usr/lib/netdata/system/openrc/conf.d)

configure_file(system/openrc/init.d/netdata.in system/openrc/init.d/netdata @ONLY)
install(PROGRAMS
install(FILES
${CMAKE_BINARY_DIR}/system/openrc/init.d/netdata
COMPONENT netdata
DESTINATION usr/lib/netdata/system/openrc/init.d)

configure_file(system/runit/run.in system/runit/run @ONLY)
install(PROGRAMS
install(FILES
${CMAKE_BINARY_DIR}/system/runit/run
COMPONENT netdata
DESTINATION usr/lib/netdata/system/runit)
Expand Down

0 comments on commit 61765bb

Please sign in to comment.