File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ echo "Linux distribution: $DISTRIBUTION, Arch: $ARCH"
39
39
40
40
# install blobfuse-proxy and blobfuse/blofuse2 if needed
41
41
case " ${DISTRIBUTION} " in
42
- " rhcos" | " cos" )
42
+ " rhcos" | " cos" | " gardenlinux " )
43
43
. ./blobfuse-proxy/install-proxy-rhcos.sh
44
44
;;
45
45
* )
Original file line number Diff line number Diff line change @@ -18,8 +18,18 @@ set -xe
18
18
19
19
BIN_PATH=${BIN_PATH:-/ usr/ local/ bin}
20
20
if [ " ${DISTRIBUTION} " = " cos" ]; then
21
+ echo " set BIN_PATH to /home/kubernetes/bin"
21
22
BIN_PATH=" /home/kubernetes/bin"
22
23
fi
24
+ if [ " ${DISTRIBUTION} " = " gardenlinux" ]; then
25
+ echo " set BIN_PATH to /var/bin"
26
+ BIN_PATH=" /var/bin"
27
+ fi
28
+ if [ " ${CUSTOM_BIN_PATH} " != " " ]; then
29
+ echo " set BIN_PATH to ${CUSTOM_BIN_PATH} "
30
+ BIN_PATH=" ${CUSTOM_BIN_PATH} "
31
+ fi
32
+
23
33
# copy blobfuse2 binary to BIN_PATH/blobfuse2
24
34
updateBlobfuse2=" true"
25
35
if [ " ${INSTALL_BLOBFUSE} " = " true" ] || [ " ${INSTALL_BLOBFUSE2} " = " true" ]
@@ -63,6 +73,10 @@ if [ "${INSTALL_BLOBFUSE_PROXY}" = "true" ];then
63
73
updateService=" true"
64
74
echo " change from /usr/bin/blobfuse-proxy to ${BIN_PATH} /blobfuse-proxy in blobfuse-proxy.service"
65
75
sed -i " s|/usr/bin/blobfuse-proxy|${BIN_PATH} /blobfuse-proxy|g" /blobfuse-proxy/blobfuse-proxy.service
76
+ if [ " ${BIN_PATH} " != " /usr/local/bin" ]; then
77
+ echo " add Environment=\" PATH=${BIN_PATH} :$PATH \" in blobfuse-proxy.service"
78
+ sed -i " /Delegate=yes/a Environment=\" PATH=${BIN_PATH} :\$ PATH\" " /blobfuse-proxy/blobfuse-proxy.service
79
+ fi
66
80
if [ -f " /host/etc/systemd/system/blobfuse-proxy.service" ]; then
67
81
old=$( sha256sum /host/etc/systemd/system/blobfuse-proxy.service | awk ' {print $1}' )
68
82
new=$( sha256sum /blobfuse-proxy/blobfuse-proxy.service | awk ' {print $1}' )
You can’t perform that action at this time.
0 commit comments