--- core/scripts/CMakeLists.txt	2020-01-31 11:21:18.000000000 -0500
+++ core/scripts/CMakeLists.txt	2020-01-31 15:37:16.832224000 -0500
@@ -17,33 +17,35 @@
 #   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 #   02110-1301, USA.
 
-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 btraceback.gdb btraceback.dbx btraceback.mdb bareos-config
-        bareos-config-lib.sh bareos-ctl-funcs
-  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
-              WORLD_READ WORLD_EXECUTE
-  DESTINATION "${scriptdir}"
-)
+   install(
+     FILES bareos btraceback.gdb btraceback.dbx btraceback.mdb bareos-config
+           bareos-config-lib.sh bareos-ctl-funcs
+     PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
+                 WORLD_READ WORLD_EXECUTE
+     DESTINATION "${scriptdir}"
+   )
+endif()
 
 if(NOT client-only)
   install(
     FILES mtx-changer disk-changer bareos-explorer bareos-glusterfind-wrapper
-          bareos-ctl-dir bareos-ctl-sd bareos-ctl-funcs
+          bareos-ctl-dir bareos-ctl-sd
     PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
                 WORLD_READ WORLD_EXECUTE
     DESTINATION "${scriptdir}"
