]> Untitled Git - ympd.git/commitdiff
add digest option to contrib files
authorSuperBFG7 <daniel@despite.ch>
Fri, 13 Nov 2015 14:07:07 +0000 (15:07 +0100)
committerSuperBFG7 <daniel@despite.ch>
Fri, 13 Nov 2015 14:07:07 +0000 (15:07 +0100)
contrib/init.debian
contrib/ympd.default
contrib/ympd.service

index 5c10bdf606fb02b24cf480d6d97ae169fdda15bc..e1c6fab0b6755e8f700ff6e02e8a8ce32b13c1a9 100755 (executable)
@@ -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()
 {
index c7bbcdaa71ca34497cff41699e86db55baddb84c..184b2ed0eff1f043bae6c2b489587fdc0cce4b9a 100644 (file)
@@ -2,3 +2,4 @@ MPD_HOST=localhost
 MPD_PORT=6600
 WEB_PORT=8080
 YMPD_USER=nobody
+#DIGEST=--digest /path/to/htdigest
index 2289550f86e1448b578880805e250622f699d4b5..4969337b7490d44f4e46874d9701c0a618201b0c 100644 (file)
@@ -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]