]> Untitled Git - ympd.git/commitdiff
quote password
authorunknownln <unknownloner.online@gmail.com>
Sat, 18 Feb 2017 17:05:24 +0000 (12:05 -0500)
committerunknownln <unknownloner.online@gmail.com>
Sat, 18 Feb 2017 17:05:24 +0000 (12:05 -0500)
contrib/init.debian
contrib/ympd.service

index 405739c3f3866b4cd035f99d969d5caa6a751a92..163b7ef4f38bdd3fdb0790368b2b69c96799b74c 100755 (executable)
@@ -35,7 +35,7 @@ WEB_PORT=8080
 # Load the VERBOSE setting and other rcS variables
 [ -f /etc/default/rcS ] && . /etc/default/rcS
 
-DAEMON_OPT="--user $YMPD_USER --mpdpass $MPD_PASSWORD --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT"
+DAEMON_OPT="--user $YMPD_USER --mpdpass '$MPD_PASSWORD' --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT"
 
 do_start()
 {
index d4d2ae2e1c5708ee702343eeb43956b995acb5cf..023b92612018f5e19dd9723438077b865498ad9f 100644 (file)
@@ -9,7 +9,7 @@ Environment=MPD_PASSWORD=
 Environment=WEB_PORT=8080
 Environment=YMPD_USER=nobody
 EnvironmentFile=/etc/default/ympd
-ExecStart=/usr/bin/ympd --user $YMPD_USER --mpdpass $MPD_PASSWORD --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT
+ExecStart=/usr/bin/ympd --user $YMPD_USER --mpdpass "$MPD_PASSWORD" --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT
 Type=simple
 
 [Install]