Skip to content

Commit a292b25

Browse files
t-lok8s-infra-cherrypick-robot
authored andcommitted
fix: custom PATH env in blobfuse-proxy.service
Commit 0f30780 corrected setting a custom PATH environment in blobfuse-proxy.service. However, the change also included a bug leading to the updated PATH never actually being added to blobfuse-proxy.service. This commit fixes that. Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
1 parent 7c42bf4 commit a292b25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/blobfuse-proxy/install-proxy-rhcos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if [ "${INSTALL_BLOBFUSE_PROXY}" = "true" ];then
101101
sed -i "s|/usr/bin/blobfuse-proxy|${BIN_PATH}/blobfuse-proxy|g" /blobfuse-proxy/blobfuse-proxy.service
102102
if [ "${BIN_PATH}" != "/usr/local/bin" ]; then
103103
echo "add \"PATH=${BIN_PATH}:\$PATH\" in blobfuse-proxy.service ExecStart."
104-
sed "s,^ExecStart[[:space:]]*=\\(.*\\)\$,ExecStart=/usr/bin/bash -c \"PATH=${BIN_PATH}:\$PATH \\1\"," \
104+
sed -i "s,^ExecStart[[:space:]]*=\\(.*\\)\$,ExecStart=/usr/bin/bash -c \"PATH=${BIN_PATH}:\$PATH \\1\"," \
105105
/blobfuse-proxy/blobfuse-proxy.service
106106
fi
107107
if [ -f "/host/etc/systemd/system/blobfuse-proxy.service" ];then

0 commit comments

Comments
 (0)