allow pubkey filename as extra argument to command in authkeys

This commit is contained in:
Sitaram Chamarty 2012-05-30 14:45:19 +05:30
parent a64401bd9a
commit 7170ad9124
3 changed files with 43 additions and 4 deletions

View file

@ -19,7 +19,7 @@ my $sufile = $rc{SHELL_USERS_LIST} or exit 0;
my $aktext = slurp($akfile);
for my $su ( shell_users() ) {
$aktext =~ s(/gitolite-shell $su",(.*?),no-pty )(/gitolite-shell -s $su",$1 );
$aktext =~ s(/gitolite-shell $su([" ].*?),no-pty )(/gitolite-shell -s $su$1 );
}
_print( $akfile, $aktext );