Skip to content

Commit

Permalink
Update service.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
CXiongWei authored Jul 6, 2023
1 parent e5a2764 commit 2bcfdb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions probers/node/service/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
cluster_vendor=$(cat /netdata/dice-ops/dice-config/config.yaml | grep vendor | awk '{print $2}' 2>/dev/null)
cri_name=$(cat /netdata/dice-ops/dice-config/config.yaml|sed 's/ //g'|grep -E "^docker|^containerd"|awk -F: '{print $1}')
is_cs=false
container_socket_path="/data/containerd/data/containerd.sock"
container_socket_path=$(systemctl status containerd|grep containerd.sock|head -1|awk '{print $NF}')
if [[ "$cluster_vendor" == cs || "$cluster_vendor" == cs_managed || "$cluster_vendor" == edas ]]; then
is_cs=true
container_socket_path="/run/containerd/containerd.sock"
fi


Expand Down

0 comments on commit 2bcfdb2

Please sign in to comment.