[SCM] mediatomb/master: d/mediatomb-daemon.mediatomb.init: issue an error if MT_USER is not set.

zumbi at users.alioth.debian.org zumbi at users.alioth.debian.org
Wed Oct 15 23:11:56 UTC 2014


The following commit has been merged in the master branch:
commit 39f390e4213e3748719db82f2d33bc60d010f141
Author: Héctor Orón Martínez <zumbi at debian.org>
Date:   Thu Oct 16 00:57:12 2014 +0200

    d/mediatomb-daemon.mediatomb.init: issue an error if MT_USER is not set.
    
    Signed-off-by: Héctor Orón Martínez <zumbi at debian.org>

diff --git a/debian/changelog b/debian/changelog
index becf813..725d877 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mediatomb (0.12.1-7) UNRELEASED; urgency=medium
+
+  * d/mediatomb-daemon.mediatomb.init: issue an error if MT_USER is not set.
+
+ -- Hector Oron <zumbi at debian.org>  Thu, 16 Oct 2014 00:54:12 +0200
+
 mediatomb (0.12.1-6) unstable; urgency=medium
 
   [ Hector Oron ]
diff --git a/debian/mediatomb-daemon.mediatomb.init b/debian/mediatomb-daemon.mediatomb.init
index 5268a35..64d44b2 100644
--- a/debian/mediatomb-daemon.mediatomb.init
+++ b/debian/mediatomb-daemon.mediatomb.init
@@ -55,7 +55,9 @@ fi
 
 # Run as root if USER not specified
 if [ ! $MT_USER ]; then
-	MT_USER=root
+	log_failure_msg "$NAME: No user '$MT_USER' specified in $DEFAULT file."
+	log_failure_msg "Please update configuration file in $DEFAULT."
+	exit 1
 fi
 
 # Check for an invalid user or one without a home directory

-- 
MediaTomb packaging



More information about the pkg-multimedia-commits mailing list