[sysadmin-bin] call py-install-module using -c sudo



commit ee52184ce8bb6e3c66a51374328e9669ee5dc853
Author: Olav Vitters <olav vitters nl>
Date:   Tue Mar 8 23:43:44 2011 +0100

    call py-install-module using -c sudo

 run-rrsync-or-special-cmd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/run-rrsync-or-special-cmd b/run-rrsync-or-special-cmd
index b55ea22..d846229 100755
--- a/run-rrsync-or-special-cmd
+++ b/run-rrsync-or-special-cmd
@@ -42,7 +42,7 @@ my $command = $ENV{SSH_ORIGINAL_COMMAND};
 die "$0: Not invoked via sshd\n$Usage"	unless defined $command;
 
 if ( $command =~ s/^install-module(?:\s+|$)// ) {
-    my @im_opts = ('-g', 'ftpadmin', INSTALL_MODULE, '-c sudo');
+    my @im_opts = ('-g', 'ftpadmin', INSTALL_MODULE, '-c', 'sudo');
     exec(SUDO, @im_opts) or die "exec(install-module) failed!";
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]