--- core/scripts/CMakeLists.txt	2021-12-21 06:00:49.000000000 -0500
+++ core/scripts/CMakeLists.txt	2021-12-22 00:23:34.270541000 -0500
@@ -18,34 +18,36 @@
 #   02110-1301, USA.
 message("Entering ${CMAKE_CURRENT_SOURCE_DIR}")
 
-install(
-  FILES bareos btraceback
-  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
-              WORLD_READ WORLD_EXECUTE
-  DESTINATION "${sbindir}"
-)
+if(client-only)
+  install(
+    FILES bareos btraceback
+    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
+                WORLD_READ WORLD_EXECUTE
+    DESTINATION "${sbindir}"
+  )
 
-install(
-  FILES bareos-ctl-fd
-  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
-              WORLD_READ WORLD_EXECUTE
-  DESTINATION "${scriptdir}"
-  COMPONENT filedaemon
-)
+  install(
+    FILES bareos-ctl-fd
+    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
+                WORLD_READ WORLD_EXECUTE
+    DESTINATION "${scriptdir}"
+    COMPONENT filedaemon
+  )
 
-install(
-  FILES bareos bareos-config
-  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
-              WORLD_READ WORLD_EXECUTE
-  DESTINATION "${scriptdir}"
-)
+  install(
+    FILES bareos bareos-config
+    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
+                WORLD_READ WORLD_EXECUTE
+    DESTINATION "${scriptdir}"
+  )
 
-install(
-  FILES bareos-config-lib.sh bareos-ctl-funcs btraceback.gdb btraceback.dbx
-        btraceback.mdb
-  PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
-  DESTINATION "${scriptdir}"
-)
+  install(
+    FILES bareos-config-lib.sh bareos-ctl-funcs btraceback.gdb btraceback.dbx
+          btraceback.mdb
+    PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+    DESTINATION "${scriptdir}"
+  )
+endif()
 
 if(NOT client-only)
   install(
