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.
Austin S. Hemmelgarn committed
Aug 14, 2024 at 08:00 UTC
61765bb632551f6935fd149fe1631b55b95ce5ad
1 file changed
+5
-5
CMakeLists.txt
+5
-5
@@ -2447,13 +2447,13 @@ install(FILES
2447
DESTINATION usr/lib/netdata/system/launchd)
2448
2449
configure_file(system/freebsd/rc.d/netdata.in system/freebsd/rc.d/netdata @ONLY)
2450
-install(PROGRAMS
2450
+install(FILES
2451
${CMAKE_BINARY_DIR}/system/freebsd/rc.d/netdata
2452
COMPONENT netdata
2453
DESTINATION usr/lib/netdata/system/freebsd/rc.d)
2454
2455
configure_file(system/initd/init.d/netdata.in system/initd/init.d/netdata @ONLY)
2456
-install(PROGRAMS
2456
+install(FILES
2457
${CMAKE_BINARY_DIR}/system/initd/init.d/netdata
2458
COMPONENT netdata
2459
DESTINATION usr/lib/netdata/system/initd/init.d)
@@ -2469,7 +2469,7 @@ install(FILES
2469
DESTINATION etc/logrotate.d)
2470
2471
configure_file(system/lsb/init.d/netdata.in system/lsb/init.d/netdata @ONLY)
2472
-install(PROGRAMS
2472
+install(FILES
2473
${CMAKE_BINARY_DIR}/system/lsb/init.d/netdata
2474
COMPONENT netdata
2475
DESTINATION usr/lib/netdata/system/lsb/init.d)
@@ -2481,13 +2481,13 @@ install(FILES
2481
DESTINATION usr/lib/netdata/system/openrc/conf.d)
2482
2483
configure_file(system/openrc/init.d/netdata.in system/openrc/init.d/netdata @ONLY)
2484
-install(PROGRAMS
2484
+install(FILES
2485
${CMAKE_BINARY_DIR}/system/openrc/init.d/netdata
2486
COMPONENT netdata
2487
DESTINATION usr/lib/netdata/system/openrc/init.d)
2488
2489
configure_file(system/runit/run.in system/runit/run @ONLY)
2490
-install(PROGRAMS
2490
+install(FILES
2491
${CMAKE_BINARY_DIR}/system/runit/run
2492
COMPONENT netdata
2493
DESTINATION usr/lib/netdata/system/runit)