From 61765bb632551f6935fd149fe1631b55b95ce5ad Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Wed, 14 Aug 2024 08:00:38 -0400 Subject: [PATCH] Ensure files in /usr/lib/netdata/system are not executable. (#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. --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19902105da5924..4fd62488645f30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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) @@ -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)