File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ set -xe
20
20
if [ " ${INSTALL_BLOBFUSE} " = " true" ] || [ " ${INSTALL_BLOBFUSE2} " = " true" ]
21
21
then
22
22
echo " copy blobfuse2...."
23
- cp /usr/bin/blobfuse2 /host/usr/local/bin/blobfuse2
23
+ old=$( sha256sum /host/usr/local/bin/blobfuse2 | awk ' {print $1}' )
24
+ new=$( sha256sum /usr/bin/blobfuse2 | awk ' {print $1}' )
25
+ if [ " $old " != " $new " ]; then
26
+ cp /usr/bin/blobfuse2 /host/usr/local/bin/blobfuse2 --force
27
+ fi
24
28
fi
25
29
26
30
# install blobfuse-proxy
36
40
if [ " $updateBlobfuseProxy " = " true" ]; then
37
41
echo " copy blobfuse-proxy...."
38
42
rm -rf /host/" $KUBELET_PATH " /plugins/blob.csi.azure.com/blobfuse-proxy.sock
39
- rm -rf /host/usr/local/bin/blobfuse-proxy
40
- cp /blobfuse-proxy/blobfuse-proxy /host/usr/local/bin/blobfuse-proxy
43
+ cp /blobfuse-proxy/blobfuse-proxy /host/usr/local/bin/blobfuse-proxy --force
41
44
chmod 755 /host/usr/local/bin/blobfuse-proxy
42
45
fi
43
46
Original file line number Diff line number Diff line change 90
90
if [ " $updateBlobfuseProxy " = " true" ]; then
91
91
echo " copy blobfuse-proxy...."
92
92
rm -rf /host/" $KUBELET_PATH " /plugins/blob.csi.azure.com/blobfuse-proxy.sock
93
- rm -rf /host/usr/bin/blobfuse-proxy
94
- cp /blobfuse-proxy/blobfuse-proxy /host/usr/bin/blobfuse-proxy
93
+ cp /blobfuse-proxy/blobfuse-proxy /host/usr/bin/blobfuse-proxy --force
95
94
chmod 755 /host/usr/bin/blobfuse-proxy
96
95
fi
97
96
You can’t perform that action at this time.
0 commit comments