From f5c2f759d6a16c9d5e06a1b61ee2b9f7ba76554c Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Wed, 11 Apr 2012 01:25:17 -0700 Subject: pinyadmin: newrepo: use full Piny::Repo rebuild(); This fixes a bug where apache_rebuild was skipped. --- pinyadmin/sbin/newrepo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pinyadmin/sbin/newrepo') diff --git a/pinyadmin/sbin/newrepo b/pinyadmin/sbin/newrepo index 8f13873..ef42b0e 100755 --- a/pinyadmin/sbin/newrepo +++ b/pinyadmin/sbin/newrepo @@ -83,8 +83,6 @@ if( defined( $remote ) ) { $repo = Piny::Repo->create( $name, $description ); }; -$repo->rebuild_git; - if ( defined( $ikiwiki ) ) { $repo->config->piny_ikiwiki( $ikiwiki ); if ( $repo->config->piny_ikiwiki ne $ikiwiki ) { @@ -92,6 +90,8 @@ if ( defined( $ikiwiki ) ) { }; }; +$repo->rebuild; + if ( $repo->config->piny_ikiwiki ) { $repo->rebuild_ikiwiki; print( "Repo URL: " . $repo->ikiwiki_url . "\n" ); -- cgit v1.2.3