Quote systemd environment variables for proxy

Allow values for proxy variables to contain spaces

Signed-off-by: George T Kramer <george.t.kramer@intel.com>
This commit is contained in:
George T Kramer
2019-07-15 16:51:35 -07:00
parent 2bc57c7a44
commit 9fcd5a9be6
+3 -3
View File
@@ -50,9 +50,9 @@ if env | grep -q proxy; then
mkdir -p /etc/systemd/system/kojid.service.d
cat > /etc/systemd/system/kojid.service.d/00-proxy.conf <<- EOF
[Service]
Environment=http_proxy=$http_proxy
Environment=https_proxy=$https_proxy
Environment=no_proxy=$no_proxy
Environment="http_proxy=$http_proxy"
Environment="https_proxy=$https_proxy"
Environment="no_proxy=$no_proxy"
EOF
systemctl daemon-reload
fi