On Fri, Oct 04, 2013 at 01:26:02PM -0400, Lennart Sorensen wrote:
> On Fri, Oct 04, 2013 at 06:39:12PM +0200, Christian Marillat wrote:
> > Josu Lazkano <josu.lazkano@???> writes:
> >
> > > Hello,
> >
> > Hi,
> >
> > > I installed mythweb 0.27 (jessie) on a test machine and I have this
> > > error message in the installation:
> > >
> > > Setting up mythweb (1:0.27.0-dmo1) ...
> > > sed: -e expression #1, char 252: unknown option to `s'
> > > dpkg: error processing mythweb (--configure):
> > > subprocess installed post-installation script returned error exit status 1
> > > Processing triggers for libc-bin ...
> > > Errors were encountered while processing:
> > > mythweb
> > > E: Sub-process /usr/bin/dpkg returned an error code (1)
> >
> > Know bug :
> >
> > http://www.deb-multimedia.org/lurker/message/20130816.083054.e1ffa78b.en.html
> >
> > Try to change the mysql server password.
>
> Perhaps something like this is needed:
>
> cat $INPUT | perl -pe "
> s/(^[ \t]*setenv[ \t]+db_server[ \t]+\")[^\"]*\"/\$1\Q$hostname\E\"/g;
> s/(^[ \t]*setenv[ \t]+db_name[ \t]+\")[^\"]*\"/\$1\Q$database\E\"/g;
> s/(^[ \t]*setenv[ \t]+db_login[ \t]+\")[^\"]*\"/\$1\Q$mythtv_username\E\"/g;
> s/(^[ \t]*setenv[ \t]+db_password[ \t]+\")[^\"]*\"/\$1\Q$mythtv_password\E\"/g;
> " > $NEW
Hmm, that didn't actually quite work.
This seems to:
cat $INPUT | perl -pe "
s/(^[ \t]*setenv[ \t]+db_server[ \t]+\")[^\"]*\"/\$1\$ENV{'hostname'}\"/g;
s/(^[ \t]*setenv[ \t]+db_name[ \t]+\")[^\"]*\"/\$1\$ENV{'database'}\"/g;
s/(^[ \t]*setenv[ \t]+db_login[ \t]+\")[^\"]*\"/\$1\$ENV{'mythtv_username'}\"/g;
s/(^[ \t]*setenv[ \t]+db_password[ \t]+\")[^\"]*\"/\$1\$ENV{'mythtv_password'}\"/g;
" > $NEW
--
Len Sorensen