Hello, thank you for reporting this bug here !

> Package: mini-httpd
> Version: 1.30-7
> Severity: normal
> 
> Dear Maintainer,
> 
> unfortunately, the current version mini-httpd 1.30-7 in unstable does
> NOT fix the Bug#1057842.
> 
> The postinst script 
> <
> https://salsa.debian.org/debian/mini-httpd/-/blob/master/debian/mini-
> httpd.postinst?ref_type=heads> 
> still creates an unwanted default page. It is no longer named 
> index.mini-httpd.html, but instead index.html. This makes things
> worse 
> with the new version of the 0003-fix-change-index-document-root patch
> <
> https://salsa.debian.org/debian/mini-httpd/-/blob/master/debian/patche
> s/0003-fix-change-index-document-root?ref_type=heads>. 
> index.mini-httpd.html would have lower priority than any other
> default 
> page, but index.html has highest priority.
> 
I can reproduce your environment, all is well so far.
> 
> Checking for and copying to /var/www/html/index.mini-httpd.html would
> have prevented that.
> 
> As before, the real problem is that the postinst script re-creates an
> index file in the document directory during the update of the
> package. 
> It is ok to do so during installation of the package, but not during
> the 
> update.
> 
> Looking at the apache2 package may help: 
> <
> https://salsa.debian.org/apache-team/apache2/-/blob/master/debian/apac
> he2.postinst?ref_type=heads>
> 
I feared the fragile handling of <default shipped webpage> in postinst
would bite this package in the arse sooner or later, as inherited by
former maintainers. I know how APT handles its error codes, the apache2
solution should work.
Unfortunately, other bug investigations limit the time I could spend
testing this. Could you perhaps help me test a dirty .deb package which
includes better handling of install/upgrade file copying?
If so, we should think of a channel in which I could upload said
package. I'd love to align this package's handling of shipped files
with apache2.
> Best regards
> 
> Alexander Foken
> 
> 
Kind regards,
Alexandru Mihail
Maintainer


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to