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



commit 6186c77c4926b28f1bafa6b70db388698906ce92
Author: Olav Vitters <olav vitters nl>
Date:   Tue Mar 8 23:26:57 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 3c2d652..b55ea22 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, '--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]