From 387ced5e851499a5566b6003593580dd4dce635b Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 16 Mar 2013 13:18:46 +0100 Subject: [PATCH] Make the slave installer also install the command daemon --- installer/build.sh | 1 + installer/slave/install.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/installer/build.sh b/installer/build.sh index c996681..bc81126 100755 --- a/installer/build.sh +++ b/installer/build.sh @@ -1,6 +1,7 @@ cd slave echo "Copying needed files for slave SFX..." cp ../../runhelper/runhelper . +cp ../../command_daemon/command_daemon . cp ../../console/slave/dropper . cp ../../logshell/logshell . cp ../../logshell/cvmshell . diff --git a/installer/slave/install.py b/installer/slave/install.py index a64b499..19c8f11 100644 --- a/installer/slave/install.py +++ b/installer/slave/install.py @@ -229,12 +229,17 @@ sys.stdout.write("Lock on /etc/group removed.\n") # Create the main CVM data directories setuplib.create_directory("/etc/cvm", True, 0, cvm_gid, "u+rwx g+rwx o+rx") setuplib.create_directory("/etc/cvm/log", True, 0, 0, "u+rwx") +setuplib.create_directory("/etc/cvm/command_daemon", True, 0, 0, "u+rwx") sys.stdout.write("Created directories.\n") # Copy the runhelper setuplib.copy_file("runhelper", "/home/cvm/runhelper", True, cvm_uid, cvm_gid, "u+rwx") sys.stdout.write("Installed runhelper.\n") +# Copy the command daemon +setuplib.copy_file("command_daemon", "/etc/cvm/command_daemon/command_daemon", True, cvm_uid, cvm_gid, "u+rwx") +sys.stdout.write("Installed command daemon.\n") + if enable_dropper == "y": # Copy the shell dropper setuplib.copy_file("dropper", "/home/vz/dropper", True, vz_uid, vz_gid, "u+rwx")