X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=script%2Fpublic-inbox-init;h=5de4578158fb19412ade85ae534cab27fba1d4e6;hb=21fcd8a37c82c1ef654d402cf592f0c9d803aa26;hp=1223d47ef2c1e76f6c27163267d6fbcedae9cf15;hpb=add90b9504f4217af5e35b3be7e326b8c6419647;p=public-inbox.git diff --git a/script/public-inbox-init b/script/public-inbox-init index 1223d47e..5de45781 100755 --- a/script/public-inbox-init +++ b/script/public-inbox-init @@ -212,6 +212,12 @@ if ($skip_docdata) { } $ibx->init_inbox(0, $skip_epoch, $skip_artnum); +my $f = "$inboxdir/description"; +if (sysopen $fh, $f, O_CREAT|O_EXCL|O_WRONLY) { + print $fh "public inbox for $address[0]\n" or die "print($f): $!"; + close $fh or die "close($f): $!"; +} + # needed for git prior to v2.1.0 umask(0077) if defined $perm; @@ -248,9 +254,3 @@ if (defined $perm) { rename $pi_config_tmp, $pi_config or die "failed to rename `$pi_config_tmp' to `$pi_config': $!\n"; undef $auto_unlink; # trigger ->DESTROY - -my $f = "$inboxdir/description"; -if (sysopen $fh, $f, O_CREAT|O_EXCL|O_WRONLY) { - print $fh "public inbox for $address[0]\n" or die "print($f): $!"; - close $fh or die "close($f): $!"; -}