Make the slave installer also install the command daemon

feature/node-rewrite
Sven Slootweg 12 years ago
parent d3f070850f
commit 387ced5e85

@ -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 .

@ -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")

Loading…
Cancel
Save