[sysadmin-bin] run-rrsync-or-special-cmd: correctly call ftpadmin
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] run-rrsync-or-special-cmd: correctly call ftpadmin
- Date: Sat, 19 Mar 2011 19:53:49 +0000 (UTC)
commit a46e13d0106cb164112e6a56e3adb98cd95fabc5
Author: Olav Vitters <olav vitters nl>
Date: Sat Mar 19 20:53:44 2011 +0100
run-rrsync-or-special-cmd: correctly call ftpadmin
run-rrsync-or-special-cmd | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/run-rrsync-or-special-cmd b/run-rrsync-or-special-cmd
index d846229..9b3d0cd 100755
--- a/run-rrsync-or-special-cmd
+++ b/run-rrsync-or-special-cmd
@@ -13,7 +13,7 @@ use File::Glob ':glob';
# of options if you want to disable any options that rsync accepts.
use constant RSYNC => '/usr/bin/rsync';
use constant SUDO => '/usr/bin/sudo';
-use constant INSTALL_MODULE => '/usr/local/bin/py-install-module';
+use constant INSTALL_MODULE => '/usr/local/bin/ftpadmin';
use constant LOGFILE => '/tmp/rrsync.log';
my $Usage = <<EOM;
@@ -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, '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]