[mythtv-commits] Ticket #13574: packaging/deb/debian - multiple issues ubuntu 20.04 focal

MythTV noreply at mythtv.org
Wed Feb 5 19:23:42 UTC 2020


#13574: packaging/deb/debian - multiple issues ubuntu 20.04 focal
----------------------------------+-----------------------------
 Reporter:  Mike Bibbings         |          Owner:  Bill Meek
     Type:  Bug Report - General  |         Status:  infoneeded
 Priority:  minor                 |      Milestone:  31.0
Component:  Packaging             |        Version:  Master Head
 Severity:  medium                |     Resolution:
 Keywords:                        |  Ticket locked:  0
----------------------------------+-----------------------------
Changes (by Bill Meek):

 * status:  accepted => infoneeded


Comment:

 Here's the fix for the DB change:
 {{{
 diff --git a/deb/debian/mythtv-database.postinst b/deb/debian/mythtv-
 database.postinst
 index 9b90aa9..8b87d36 100644
 --- a/deb/debian/mythtv-database.postinst
 +++ b/deb/debian/mythtv-database.postinst
 @@ -37,7 +37,8 @@ ask_root_pw() {

  update_database() {
      #Set up privs for mythtv at network
 -    if ! echo "GRANT ALL PRIVILEGES ON $database.* TO
 $mythtv_username@'%' IDENTIFIED BY '$mythtv_password';" | \
 +    if ! echo "CREATE USER IF NOT EXISTS $mythtv_username@'%' IDENTIFIED
 BY '$mythtv_password'; \
 +               GRANT ALL ON $database.* TO $mythtv_username@'%';" | \
          mysql $SECURITY_INFO "$database" >/dev/null 2>&1; then
          fail_database
      fi
 }}}

 I can't find a way to make the redirection issue fail. Please past the
 output of
 this: ''ls -ld /usr/share/mythtv /usr/share/mythtv/config.xml /etc/mythtv
 /etc/mythtv/config.xml'' here (and I'm testing on focal.)
 I've got no problem with your ''cp'' solution, but just would like to
 understand why
 redirection fails. Thanks.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13574#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list