From 6f54187ea914070c7a70ed0da317c4116e919109 Mon Sep 17 00:00:00 2001 From: SuperBFG7 Date: Fri, 13 Nov 2015 15:07:07 +0100 Subject: [PATCH] add digest option to contrib files --- contrib/init.debian | 3 ++- contrib/ympd.default | 1 + contrib/ympd.service | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/init.debian b/contrib/init.debian index 5c10bdf..e1c6fab 100755 --- a/contrib/init.debian +++ b/contrib/init.debian @@ -24,6 +24,7 @@ YMPD_USER=nobody MPD_HOST=localhost MPD_PORT=6600 WEB_PORT=8080 +#DIGEST=--digest /path/to/htdigest # Exit if the package is not installed @@ -35,7 +36,7 @@ WEB_PORT=8080 # Load the VERBOSE setting and other rcS variables [ -f /etc/default/rcS ] && . /etc/default/rcS -DAEMON_OPT="--user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT" +DAEMON_OPT="--user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $DIGEST" do_start() { diff --git a/contrib/ympd.default b/contrib/ympd.default index c7bbcda..184b2ed 100644 --- a/contrib/ympd.default +++ b/contrib/ympd.default @@ -2,3 +2,4 @@ MPD_HOST=localhost MPD_PORT=6600 WEB_PORT=8080 YMPD_USER=nobody +#DIGEST=--digest /path/to/htdigest diff --git a/contrib/ympd.service b/contrib/ympd.service index 2289550..4969337 100644 --- a/contrib/ympd.service +++ b/contrib/ympd.service @@ -7,8 +7,9 @@ Environment=MPD_HOST=localhost Environment=MPD_PORT=6600 Environment=WEB_PORT=8080 Environment=YMPD_USER=nobody +Environment=DIGEST= EnvironmentFile=/etc/default/ympd -ExecStart=/usr/bin/ympd --user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT +ExecStart=/usr/bin/ympd --user $YMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $DIGEST Type=simple [Install] -- 2.20.1