Public bug reported:

Simple naming bug, easy to fix.  However, it does cause user settings to
be ignored!

In /etc/defaults/mediatomb all settings variables are prefixed by MT_,
e.g. line 11:

MT_OPTIONS=""

But in /etc/init.d/mediatomb only $OPTIONS is missing its MT_ prefix, so
line 80 it says:

DAEMON_ARGS="-c /etc/mediatomb/config.xml -d -u $MT_USER -g $MT_GROUP -P
$MT_PIDFILE -l $MT_LOGFILE $INTERFACE_ARG $OPTIONS"

Effectively, any MT_OPTIONS set in /etc/defaults/mediatomb are ignored
by the init script.


This will fix it, almost as good as a patch:

sed 's,$OPTIONS,$MT_OPTIONS,g' -i /etc/init.d/mediatomb

** Affects: mediatomb (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

- Simple naming bug, easy to fix!
+ Simple naming bug, easy to fix.  However, it does cause user settings to
+ be ignored!
  
  
  In /etc/defaults/mediatomb all settings variables are prefixed by MT_, e.g. 
line 11:
+ 
  MT_OPTIONS=""
  
  
  But in /etc/init.d/mediatomb only $OPTIONS is missing its MT_ prefix, so line 
80 it says:
  
  DAEMON_ARGS="-c /etc/mediatomb/config.xml -d -u $MT_USER -g $MT_GROUP -P
  $MT_PIDFILE -l $MT_LOGFILE $INTERFACE_ARG $OPTIONS"
  
- Effectively, any MT_OPTIONS set in /etc/defaults/mediatomb are ignored
- by the init script.
+ 
+ Effectively, any MT_OPTIONS set in /etc/defaults/mediatomb are ignored by the 
init script.
  
  This will fix it, almost as good as a patch:
  
  sed 's,$OPTIONS,$MT_OPTIONS,g' -i /etc/init.d/mediatomb

** Description changed:

  Simple naming bug, easy to fix.  However, it does cause user settings to
  be ignored!
  
- 
- In /etc/defaults/mediatomb all settings variables are prefixed by MT_, e.g. 
line 11:
+ In /etc/defaults/mediatomb all settings variables are prefixed by MT_,
+ e.g. line 11:
  
  MT_OPTIONS=""
  
- 
- But in /etc/init.d/mediatomb only $OPTIONS is missing its MT_ prefix, so line 
80 it says:
+ But in /etc/init.d/mediatomb only $OPTIONS is missing its MT_ prefix, so
+ line 80 it says:
  
  DAEMON_ARGS="-c /etc/mediatomb/config.xml -d -u $MT_USER -g $MT_GROUP -P
  $MT_PIDFILE -l $MT_LOGFILE $INTERFACE_ARG $OPTIONS"
  
+ Effectively, any MT_OPTIONS set in /etc/defaults/mediatomb are ignored
+ by the init script.
  
- Effectively, any MT_OPTIONS set in /etc/defaults/mediatomb are ignored by the 
init script.
  
  This will fix it, almost as good as a patch:
  
  sed 's,$OPTIONS,$MT_OPTIONS,g' -i /etc/init.d/mediatomb

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1713800

Title:
  Wrong variable name $OPTIONS in /etc/init.d/mediatomb; should be
  $MT_OPTIONS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mediatomb/+bug/1713800/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to