diff options
Diffstat (limited to '')
-rwxr-xr-x | src/git-ro-daemon.pl (renamed from git-ro-daemon.pl) | 0 | ||||
-rwxr-xr-x | src/gitjoe-addsshkey.pl (renamed from gitjoe-addsshkey.pl) | 0 | ||||
-rwxr-xr-x | src/gitjoe-newrepo.pl (renamed from gitjoe-newrepo.pl) | 0 | ||||
-rwxr-xr-x | src/gitjoe-newuser.pl (renamed from gitjoe-newuser.pl) | 0 | ||||
-rwxr-xr-x | src/gitjoe-rmrepo.pl (renamed from gitjoe-rmrepo.pl) | 0 | ||||
-rwxr-xr-x | src/gitjoe-rmuser.pl (renamed from gitjoe-rmuser.pl) | 0 | ||||
-rwxr-xr-x | src/update-gitjoe.pl (renamed from update-gitjoe.pl) | 13 | ||||
-rwxr-xr-x | src/update-serv.pl (renamed from update-serv.pl) | 0 |
8 files changed, 7 insertions, 6 deletions
diff --git a/git-ro-daemon.pl b/src/git-ro-daemon.pl index 93c5339..93c5339 100755 --- a/git-ro-daemon.pl +++ b/src/git-ro-daemon.pl diff --git a/gitjoe-addsshkey.pl b/src/gitjoe-addsshkey.pl index d7e0477..d7e0477 100755 --- a/gitjoe-addsshkey.pl +++ b/src/gitjoe-addsshkey.pl diff --git a/gitjoe-newrepo.pl b/src/gitjoe-newrepo.pl index 1bc5a06..1bc5a06 100755 --- a/gitjoe-newrepo.pl +++ b/src/gitjoe-newrepo.pl diff --git a/gitjoe-newuser.pl b/src/gitjoe-newuser.pl index a141277..a141277 100755 --- a/gitjoe-newuser.pl +++ b/src/gitjoe-newuser.pl diff --git a/gitjoe-rmrepo.pl b/src/gitjoe-rmrepo.pl index 30ce4d2..30ce4d2 100755 --- a/gitjoe-rmrepo.pl +++ b/src/gitjoe-rmrepo.pl diff --git a/gitjoe-rmuser.pl b/src/gitjoe-rmuser.pl index 944745f..944745f 100755 --- a/gitjoe-rmuser.pl +++ b/src/gitjoe-rmuser.pl diff --git a/update-gitjoe.pl b/src/update-gitjoe.pl index 6a10b5e..a0471ee 100755 --- a/update-gitjoe.pl +++ b/src/update-gitjoe.pl @@ -6,13 +6,13 @@ use Term::ANSIColor; sub get_repos_index { my $user = $_[0]; - my $homedir = '/usr/home/' . $user . '/'; - opendir(DIR, $homedir); + my $home_dir = '/usr/home/' . $user . '/'; + opendir(DIR, $home_dir); my @repos; my $i = 0; while (my $dir = readdir(DIR)) { next if ($dir =~ m/^\./); - next if (!(-e $homedir . $dir . '/git-daemon-export-ok')); + next if (!(-e $home_dir . $dir . '/git-daemon-export-ok')); $repos[$i] = $dir; $i += 1; } @@ -30,17 +30,18 @@ sub get_repos_index { sub stagit_generate { my ($user, @repos) = @_; my $i = 0; + my $site_dir = '/usr/local/www/git-jozan/'; + chdir($site_dir); while ($i < @repos) { - print colored($repos[$i], 'bold red') . "\n"; $i += 1; } return; } sub main { - my $homedir = '/usr/home/'; + my $home_dir = '/usr/home/'; my @users; - opendir(DIR, $homedir); + opendir(DIR, $home_dir); my $i = 0; while (my $dir = readdir(DIR)) { next if ($dir eq 'git-ro'); diff --git a/update-serv.pl b/src/update-serv.pl index 77c64ff..77c64ff 100755 --- a/update-serv.pl +++ b/src/update-serv.pl |