[elbe-devel] [PATCH 2/4] Workaround for missing 'create-mime.assign.pl'
Bastian Germann
bage at linutronix.de
Mon Jul 29 18:05:03 CEST 2019
> From: Olivier Dion <dion at linutronix.de>
>
> I have no idea why lighttpd looks for 'create-mime.assign.pl' when the
> default is 'create-mime.conf.pl'. I haven't found much information
> for that problem.
>
> Using debathena to change the default inclusion seems to work. This
> commit should be reverted in the future when lighttpd correctly check
> for .conf instead of .assign.
>
> Here's what you get without this fix:
> ----------------------------------------------------------------------
> elbe-daemon systemd[1]: Starting Lighttpd Daemon...
> elbe-daemon lighttpd[443]: /bin/sh: 1: /usr/share/lighttpd/create-mime.assign.pl: not found
> elbe-daemon lighttpd[443]: 2019-07-26 11:27:45: (configfile.c.1461) command "/usr/share/lighttpd/create-mime.assign.pl" exited non-zero: 127
> elbe-daemon lighttpd[443]: 2019-07-26 11:27:45: (configfile.c.1289) source: /etc/lighttpd/lighttpd.conf line: 29 pos: 14 parser failed somehow near here: (EOL)
> elbe-daemon systemd[1]: lighttpd.service: Control process exited, code=exited, status=255/EXCEPTION
> elbe-daemon systemd[1]: lighttpd.service: Failed with result 'exit-code'.
> elbe-daemon systemd[1]: Failed to start Lighttpd Daemon.
> ----------------------------------------------------------------------
>
> Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Bastian Germann <bage at linutronix.de>
> ---
> .../debian/debathena-transform-lighttpd.transform | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/debathena-transform-lighttpd/debian/debathena-transform-lighttpd.transform b/contrib/debathena-transform-lighttpd/debian/debathena-transform-lighttpd.transform
> index c4514e59..7a404c8e 100644
> --- a/contrib/debathena-transform-lighttpd/debian/debathena-transform-lighttpd.transform
> +++ b/contrib/debathena-transform-lighttpd/debian/debathena-transform-lighttpd.transform
> @@ -1 +1,6 @@
> -/etc/lighttpd/lighttpd.conf.debathena sed -e 's/^server.bind.*//' -e 's/^\(server.\)port\(.*=\).*/\1port\2 8080\n\1bind\2 "127.0.0.1"\n$HTTP["url"] =~ "^\/var\/cache\/elbe\/" { url.access-deny = ( "disable" ) }/' -e 's/^\(server.document-root.*=\).*/\1 "\/"/' -e 's/^\(url.access-deny.*=\).*/\1 ( "" )/'
> +/etc/lighttpd/lighttpd.conf.debathena sed \
> +-e 's/^server.bind.*//' \
> +-e 's/^\(server.\)port\(.*=\).*/\1port\2 8080\n\1bind\2 "127.0.0.1"\n$HTTP["url"] =~ "^\/var\/cache\/elbe\/" { url.access-deny = ( "disable" ) }/' \
> +-e 's/^\(server.document-root.*=\).*/\1 "\/"/' \
> +-e 's/^\(url.access-deny.*=\).*/\1 ( "" )/' \
> +-e 's/create-mime.assign.pl/create-mime.conf.pl/'
>
More information about the elbe-devel
mailing list