Skip to content

Commit cfd61ef

Browse files
committed
fix by code review
1 parent 63b09ea commit cfd61ef

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/blobfuse-proxy/init.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ if [ -f "/host/usr/bin/blobfuse-proxy" ];then
4040
if [ "$old" = "$new" ];then
4141
updateBlobfuseProxy="false"
4242
echo "no need to update blobfuse-proxy"
43-
else
44-
rm -rf /host/usr/bin/blobfuse-proxy
45-
rm -rf /host/var/lib/kubelet/plugins/blob.csi.azure.com/blobfuse-proxy.sock
4643
fi
4744
fi
4845

4946
if [ "$updateBlobfuseProxy" = "true" ];then
5047
echo "copy blobfuse-proxy...."
48+
rm -rf /host/var/lib/kubelet/plugins/blob.csi.azure.com/blobfuse-proxy.sock
5149
cp /blobfuse-proxy/blobfuse-proxy /host/usr/bin/blobfuse-proxy
5250
chmod 755 /host/usr/bin/blobfuse-proxy
5351
fi
@@ -59,8 +57,6 @@ if [ -f "/host/usr/lib/systemd/system/blobfuse-proxy.service" ];then
5957
if [ "$old" = "$new" ];then
6058
updateService="false"
6159
echo "no need to update blobfuse-proxy.service"
62-
else
63-
rm -rf /host/usr/lib/systemd/system/blobfuse-proxy.service
6460
fi
6561
fi
6662

0 commit comments

Comments
 (0)