From 0c3809e818389b3106c5309e6ea102164a003392 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 11 Dec 2012 23:28:03 +0100 Subject: [PATCH] Update installer to include logged non-interactive shell --- installer/build.sh | 2 ++ installer/slave/install.py | 1 + 2 files changed, 3 insertions(+) diff --git a/installer/build.sh b/installer/build.sh index 480cf3f..c996681 100755 --- a/installer/build.sh +++ b/installer/build.sh @@ -4,6 +4,7 @@ cp ../../runhelper/runhelper . cp ../../console/slave/dropper . cp ../../logshell/logshell . cp ../../logshell/cvmshell . +cp ../../logshell/logcmd . cp ../common/setuplib.py . echo "Creating slave SFX..." tar -czf - * | python ../../tools/pysfx/pysfx.py -as "python install.py" - ../slave_sfx.py @@ -12,6 +13,7 @@ rm runhelper rm dropper rm logshell rm cvmshell +rm logcmd rm setuplib.py cd .. diff --git a/installer/slave/install.py b/installer/slave/install.py index d196ab4..3956028 100644 --- a/installer/slave/install.py +++ b/installer/slave/install.py @@ -240,6 +240,7 @@ if enable_dropper == "y": # Copy the logged shell setuplib.copy_file("logshell", "/home/cvm/logshell", True, cvm_uid, cvm_gid, "u+rwx") setuplib.copy_file("cvmshell", "/home/cvm/cvmshell", True, cvm_uid, cvm_gid, "u+rwx") +setuplib.copy_file("logcmd", "/home/cvm/logcmd", True, cvm_uid, cvm_gid, "u+rwx") sys.stdout.write("Installed logged shell.\n") if os.path.exists("/etc/sudoers.lock"):