From e5a88b1ffea9804462c6e3fa6f12e21668d75410 Mon Sep 17 00:00:00 2001 From: unknownln Date: Sat, 18 Feb 2017 12:05:24 -0500 Subject: [PATCH] quote password --- contrib/init.debian | 2 +- contrib/ympd.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/init.debian b/contrib/init.debian index 405739c..163b7ef 100755 --- a/contrib/init.debian +++ b/contrib/init.debian @@ -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() { diff --git a/contrib/ympd.service b/contrib/ympd.service index d4d2ae2..023b926 100644 --- a/contrib/ympd.service +++ b/contrib/ympd.service @@ -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]