From aa04ba92b6acdf4cd23de977da439e1b267a8972 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 23 Dec 2012 01:48:22 +0100 Subject: [PATCH] Fix bugs in installer --- installer/slave/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/slave/install.py b/installer/slave/install.py index 43f661d..c41759d 100644 --- a/installer/slave/install.py +++ b/installer/slave/install.py @@ -199,14 +199,14 @@ authkeys.close() sys.stdout.write("Installed public key for cvm user.\n") if enable_dropper == "y": - setuplib.create_directory("/home/vz", True, cvm_uid, cvm_gid, "u+rwx g+rx") + setuplib.create_directory("/home/vz", True, vz_uid, vz_gid, "u+rwx g+rx o+x") passwd.write("vz::%d:%d:CVM OpenVZ Shell Dropper:/home/vz:/home/vz/dropper\n" % (vz_uid, vz_gid)) sys.stdout.write("Created vz user.\n") grp.write("vz::%d:\n" % vz_gid) sys.stdout.write("Created vz group.\n") - setuplib.create_directory("/home/vz/.ssh", True, cvm_uid, cvm_gid, "u+rwx") + setuplib.create_directory("/home/vz/.ssh", True, vz_uid, vz_gid, "u+rwx") authkeys = open("/home/vz/.ssh/authorized_keys", "a") authkeys.write("%s\n" % pubkey) authkeys.close()