Opened 3 years ago

#12780 new Bug Report - General

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@… 3 years ago.
escape the password string before using in sed replace

Download all attachments as: .zip

Change History (1)

Changed 3 years ago by jason@…

Attachment: mythweb.postinst.patch added

escape the password string before using in sed replace

Note: See TracTickets for help on using tickets.