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

Bug #1713800 reported by Stephan Henningsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediatomb (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.