[SCM] mpd-sima/master: Create database with mpd-sima user (Fixed piuparts error)

kaliko-guest at users.alioth.debian.org kaliko-guest at users.alioth.debian.org
Sun Jan 3 11:20:59 UTC 2016


The following commit has been merged in the master branch:
commit 74fce2dfa064cd25146a3b0b1e1a65e032efe287
Author: Geoffroy Youri Berret <efrim at azylum.org>
Date:   Sun Oct 11 12:46:56 2015 +0200

    Create database with mpd-sima user (Fixed piuparts error)

diff --git a/debian/mpd-sima.postinst b/debian/mpd-sima.postinst
index 8de2e6b..52157fe 100755
--- a/debian/mpd-sima.postinst
+++ b/debian/mpd-sima.postinst
@@ -55,16 +55,16 @@ do_mpd_sima_conf () {
 do_mpd_sima_create_db () {
     if [ ! -e "/var/lib/mpd-sima/sima.db" ] ; then
         echo -n "Creating database"
-        mpd-sima --create-db --config="/etc/mpd-sima.cfg" --var_dir="/var/lib/mpd-sima" --log-level=warning >/dev/null && echo "."
+        su -s /bin/sh -c "mpd-sima --create-db --config=/etc/mpd-sima.cfg --var_dir=/var/lib/mpd-sima --log-level=warning" mpd-sima >/dev/null && echo "."
     fi
 }
 
 case "$1" in
     configure)
-        do_mpd_sima_create_db
         do_mpd_sima_adduser
         do_mpd_sima_perms
         do_mpd_sima_conf
+        do_mpd_sima_create_db
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

-- 
mpd-sima packaging



More information about the pkg-multimedia-commits mailing list