Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Puppet_Master (23aaa030063002bc96e19fc619f90d39e33a3f5f)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Puppet_Master <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Puppet_Master (23aaa030063002bc96e19fc619f90d39e33a3f5f)
  • Date: Fri, 22 Jun 2007 02:01:58 -0500

GIT changes to master grimoire by Puppet_Master <puppetmaster.e17 AT gmail.com>:

audio-players/mpd/FINAL | 42
++++++++++++++++++++----------------------
audio-players/mpd/HISTORY | 6 ++++--
audio-players/mpd/init.d/mpd | 4 +---
3 files changed, 25 insertions(+), 27 deletions(-)

New commits:
commit 23aaa030063002bc96e19fc619f90d39e33a3f5f
Author: Philippe Caseiro <puppet_master AT else-projects.org>
Commit: Puppet_Master <puppetmaster.e17 AT gmail.com>

Cleaning somethings like tabs on FINAL file and bas comment on mpd init
script

diff --git a/audio-players/mpd/FINAL b/audio-players/mpd/FINAL
index 10e5068..68cc9fa 100755
--- a/audio-players/mpd/FINAL
+++ b/audio-players/mpd/FINAL
@@ -1,26 +1,24 @@
# If the user chose to install init script
# we do what mpd need to run as a service correctly
-
if [[ $INIT_INSTALLED ]]; then
- source ${GRIMOIRE}/libaccount &&
- I_R=${INSTALL_ROOT} &&
- USRBIN=${I_R}/usr/bin &&
- MPD_HOME="/var/lib/mpd" &&
- MPD_DIRS="${MPD_HOME}/music ${MPD_HOME}/playlists" &&
- MPD_FILES="${I_R}/var/log/mpd.log ${I_R}/var/log/mpd.error" &&
- create_account musicdaemon &&
- for dir in "${MPD_HOME} ${MPD_DIRS}";
- do
- if [[ ! -r ${dir} ]]; then
- mkdir -p ${dir} &&
- chown musicdaemon:audio ${dir}
- fi
- done &&
- for file in ${MPD_FILES};
- do
- if [[ ! -r ${file} ]]; then
- touch ${file} &&
- chown musicdaemon:audio ${file}
- fi
- done
+ source ${GRIMOIRE}/libaccount &&
+ I_R=${INSTALL_ROOT} &&
+ MPD_LIB="/var/lib/mpd" &&
+ MPD_DIRS="${MPD_LIB}/music ${MPD_LIB}/playlists" &&
+ MPD_FILES="${I_R}/var/log/mpd.log ${I_R}/var/log/mpd.error" &&
+ create_account musicdaemon &&
+ for dir in "${MPD_LIB} ${MPD_DIRS}";
+ do
+ if [[ ! -r ${dir} ]]; then
+ mkdir -p ${dir} &&
+ chown musicdaemon:audio ${dir}
+ fi
+ done &&
+ for file in ${MPD_FILES};
+ do
+ if [[ ! -r ${file} ]]; then
+ touch ${file} &&
+ chown musicdaemon:audio ${file}
+ fi
+ done
fi
diff --git a/audio-players/mpd/HISTORY b/audio-players/mpd/HISTORY
index be287a2..b75f4a7 100644
--- a/audio-players/mpd/HISTORY
+++ b/audio-players/mpd/HISTORY
@@ -1,11 +1,13 @@
+2007-06-22 Philippe "Puppet_Master" Caseiro <caseiro.philippe AT free.fr>
+ * FINAL : Changing MPD_HOME to MPD_LIB
+ * init.d/mpd : Removing bad comment
+
2007-06-20 Philippe "Puppet_Master" Caseiro <caseiro.philippe AT free.fr>
* inid.d : adding init script
* FINAL : adding file to mpd user creation
* mpd.conf : adding configuration file
* INSTALL : change the installed configuration file

-
-
2007-05-31 George Sherwood <george AT beernabeer.com>
* DETAILS: Updated to 0.13.0

diff --git a/audio-players/mpd/init.d/mpd b/audio-players/mpd/init.d/mpd
index 832d8d1..6bab39a 100644
--- a/audio-players/mpd/init.d/mpd
+++ b/audio-players/mpd/init.d/mpd
@@ -1,12 +1,10 @@
#!/bin/bash

-#. /etc/sysconfig/gpm
-
PROGRAM=/usr/bin/mpd
ARGS=""
RUNLEVEL=3
NEEDS=""

-[[ -z "/var/lib/mpd/mpd.db" ]] && ARGS="--create-db"
+[[ -z "/var/lib/mpd/mpd.db" ]] && ARGS="$ARGS --create-db"

. /etc/init.d/smgl_init




Archive powered by MHonArc 2.6.24.

Top of Page