#!/bin/bash
# SPDX-License-Identifier: MulanPSL-2.0+
# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.

while true
do
	docker ps | grep "calico-node" | grep -q "start_runit"
	[ "$?" = "0" ] && {
		sleep 10
		cd /opt/cni/bin
		chmod u-s calico calico-ipam install
		break
	}
done
