Blame SOURCES/fix-systemd-service-script-use-connect-args-patch

bf2469
commit 57315578d9e500dae5143dbda607dcadc933c545
bf2469
Author: James Smart <jsmart2021@gmail.com>
bf2469
Date:   Tue Jan 7 10:02:57 2020 -0700
bf2469
bf2469
    Fix systemd service script use of CONNECT_ARGS env var
bf2469
    
bf2469
    In testing, some environments are not properly expanding CONNECT_ARGS.
bf2469
    
bf2469
    Change systemd service file use of CONNECT_ARGS to be encapsulated by
bf2469
    apostrophes and parens.
bf2469
    
bf2469
    Signed-off-by: James Smart <jsmart2021@gmail.com>
bf2469
    Signed-off-by: Keith Busch <kbusch@kernel.org>
bf2469
bf2469
diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service b/nvmf-autoconnect/systemd/nvmf-connect@.service
bf2469
index 10fb3aa..c60f146 100644
bf2469
--- a/nvmf-autoconnect/systemd/nvmf-connect@.service
bf2469
+++ b/nvmf-autoconnect/systemd/nvmf-connect@.service
bf2469
@@ -11,4 +11,4 @@ Requires=nvmf-connect.target
bf2469
 [Service]
bf2469
 Type=simple
bf2469
 Environment="CONNECT_ARGS=%i"
bf2469
-ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e $CONNECT_ARGS`"
bf2469
+ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`"