Opened 8 years ago

Closed 4 years ago

#12780 closed Bug Report - General (Unverified)

debian mythweb package fails to install if mysql password contains a forward slash

Reported by: jason@… Owned by:
Priority: minor Milestone: unknown
Component: Packaging Version: 0.28.0
Severity: medium Keywords: debian mythweb
Cc: Ticket locked: no

Description

my password to mysql contains a forward slash and when I try and install the mythweb debian package, it fails during postinst with:

sed: -e expression #1, char 209: unknown option to `s'

this is due to the string containing a / which interferes with sed's regex

s/^.*\(setenv\sdb_password\s\+\"\).*\"/\t\1$mythtv_password\"/g;

password should probably be escaped prior to using with sed. patch to follow

Attachments (1)

mythweb.postinst.patch (839 bytes) - added by jason@… 8 years ago.
escape the password string before using in sed replace

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by jason@…

Attachment: mythweb.postinst.patch added

escape the password string before using in sed replace

comment:1 Changed 4 years ago by Stuart Auchterlonie

Resolution: Unverified
Status: newclosed

Closing all old tickets in trac.

If your issue still persists, please open an issue in Github https://github.com/MythTV/mythtv/issues

and reference the existing trac ticket.

Note: See TracTickets for help on using tickets.