]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-init
init: set a useful description
[public-inbox.git] / script / public-inbox-init
index ced882359870bcf183df91833e4bf126fb4a6974..78a4d3bd75748f65110bb3e8af18c7d4fc976df8 100755 (executable)
@@ -246,3 +246,9 @@ 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): $!";
+}