From 01cae5b08f26d3ca9034bd02b13b21e762e81149 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 23 Nov 2010 01:11:10 +0000 Subject: - split the module in 2 part, and add class to allow to more easyly combine the autorized shell --- modules/restrictshell/templates/membersh-conf.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/restrictshell/templates/membersh-conf.pl') diff --git a/modules/restrictshell/templates/membersh-conf.pl b/modules/restrictshell/templates/membersh-conf.pl index 0d9887e1..203a2c94 100755 --- a/modules/restrictshell/templates/membersh-conf.pl +++ b/modules/restrictshell/templates/membersh-conf.pl @@ -1,16 +1,18 @@ -$use_svn = "<%= allow_svn %>"; + + $bin_svn = "/usr/bin/svnserve"; $regexp_svn = "^svnserve -t\$"; #@prepend_args_svn = ( '-r', '/svn' ); @prepend_args_svn = (); -$use_git = "<%= allow_git %>"; $bin_git = "/usr/bin/git-shell"; -$use_rsync = "<%= allow_rsync %>"; $bin_rsync = "/usr/bin/rsync"; $regexp_rsync = "^rsync --server"; $regexp_dir_rsync = "^/.*"; -$use_pkgsubmit = "<%= allow_pkgsubmit %>"; +foreach my $f (glob("/etc/membersh-conf.d/allow_*pl")) { + do($f) +} +1; -- cgit v1.2.1