]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Fix systemd service script use of CONNECT_ARGS env var
authorJames Smart <jsmart2021@gmail.com>
Tue, 7 Jan 2020 17:02:57 +0000 (10:02 -0700)
committerKeith Busch <kbusch@kernel.org>
Tue, 7 Jan 2020 17:02:57 +0000 (10:02 -0700)
In testing, some environments are not properly expanding CONNECT_ARGS.

Change systemd service file use of CONNECT_ARGS to be encapsulated by
apostrophes and parens.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
nvmf-autoconnect/systemd/nvmf-connect@.service

index 10fb3aafcf59ee4c2380229d78a6465bbdcba184..c60f146e990c1046bcc31a95d294a0c7c257e83f 100644 (file)
@@ -11,4 +11,4 @@ Requires=nvmf-connect.target
 [Service]
 Type=simple
 Environment="CONNECT_ARGS=%i"
-ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e $CONNECT_ARGS`"
+ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`"