From 53d2c5c6d98465c33f6f257be0b99fcf5cbe38c7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 26 Mar 2020 08:21:28 +0000 Subject: wwwtext: show altid instructions in config Exposing altid dumps will help and ensure total reproducibility of existing instances. AFAIK, sqlite3(1) can't execute arbitrary code, so it's not quite as fashionable as the "curl | bash" stuff the cool people are doing, these days :P --- lib/PublicInbox/WwwText.pm | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm index cbe82b73..2008ba09 100644 --- a/lib/PublicInbox/WwwText.pm +++ b/lib/PublicInbox/WwwText.pm @@ -138,15 +138,16 @@ sub inbox_config ($$$) { my $ibx = $ctx->{-inbox}; push @$hdr, 'Content-Disposition', 'inline; filename=inbox.config'; my $name = dq_escape($ibx->{name}); + my $inboxdir = '/path/to/top-level-inbox'; $$txt .= <{$k}) or next; $$txt .= "\t$k = $_\n" for @$v; } + if (my $altid = $ibx->{altid}) { + my $base_url = $ibx->base_url($ctx->{env}); + my $altid_map = $ibx->altid_map; + $$txt .= <{$k}) or next; -- cgit v1.2.3-24-ge0c7