From 57315578d9e500dae5143dbda607dcadc933c545 Mon Sep 17 00:00:00 2001 From: James Smart Date: Tue, 7 Jan 2020 10:02:57 -0700 Subject: [PATCH] Fix systemd service script use of CONNECT_ARGS env var 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 Signed-off-by: Keith Busch --- nvmf-autoconnect/systemd/nvmf-connect@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service b/nvmf-autoconnect/systemd/nvmf-connect@.service index 10fb3aa..c60f146 100644 --- a/nvmf-autoconnect/systemd/nvmf-connect@.service +++ b/nvmf-autoconnect/systemd/nvmf-connect@.service @@ -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}'`" -- 2.49.0