[sysadmin-bin] run-rrsync-or-special-cmd: also call install-module when no arguments were given
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] run-rrsync-or-special-cmd: also call install-module when no arguments were given
- Date: Mon, 7 Mar 2011 23:09:54 +0000 (UTC)
commit 7ee1d0f1d996c67bdc5b7c21653facbfd15e84ac
Author: Olav Vitters <olav vitters nl>
Date: Tue Mar 8 00:09:45 2011 +0100
run-rrsync-or-special-cmd: also call install-module when no arguments were given
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 4a0e562..3c2d652 100755
--- a/run-rrsync-or-special-cmd
+++ b/run-rrsync-or-special-cmd
@@ -41,7 +41,7 @@ die "$0: Restricted directory does not exist!\n" if $subdir ne '/' && !-d $subdi
my $command = $ENV{SSH_ORIGINAL_COMMAND};
die "$0: Not invoked via sshd\n$Usage" unless defined $command;
-if ( $command =~ s/^install-module\s+// ) {
+if ( $command =~ s/^install-module(?:\s+|$)// ) {
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]