- Timestamp:
- Apr 29, 2011, 9:14:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/common/oursrc/execsys/ldapize.pl
r1821 r1822 40 40 my ($homeDirectory, $uidNumber, $gidNumber) = 41 41 map { $userEntry->get_value($_) } qw(homeDirectory uidNumber gidNumber); 42 (my $scriptsdir = $homeDirectory) =~ s{(?:/Scripts)?$}{/Scripts}; 42 43 43 44 if ($proto eq 'svn') { 44 45 chdir '/usr/libexec/scripts-trusted'; 45 exec('/usr/sbin/suexec', $uidNumber, $gidNumber, '/usr/libexec/scripts-trusted/svn', "$ homeDirectory/Scripts/svn/$vhostDirectory");46 exec('/usr/sbin/suexec', $uidNumber, $gidNumber, '/usr/libexec/scripts-trusted/svn', "$scriptsdir/svn/$vhostDirectory"); 46 47 } elsif ($proto eq 'git') { 47 48 chdir '/usr/libexec/scripts-trusted'; 48 exec('/usr/sbin/suexec', $uidNumber, $gidNumber, '/usr/libexec/scripts-trusted/git', "$ homeDirectory/Scripts/git/$vhostDirectory");49 exec('/usr/sbin/suexec', $uidNumber, $gidNumber, '/usr/libexec/scripts-trusted/git', "$scriptsdir/git/$vhostDirectory"); 49 50 } elsif ($proto eq 'http') { 50 print "suexec $uidNumber $gidNumber $ homeDirectory/Scripts/web/$vhostDirectory/$path\n";51 print "suexec $uidNumber $gidNumber $scriptsdir/web/$vhostDirectory/$path\n"; 51 52 } else { 52 53 die "Unknown protocol\n";
Note: See TracChangeset
for help on using the changeset viewer.