From e7c529d0cb49cc8f199771604fef7ac8635548c6 Mon Sep 17 00:00:00 2001 From: x00425595 Date: Tue, 29 Mar 2022 17:10:32 +0800 Subject: remove unused shell Signed-off-by: x00425595 --- edge/hack/setup_for_IEF.sh | 187 --------------------------------------------- 1 file changed, 187 deletions(-) delete mode 100755 edge/hack/setup_for_IEF.sh (limited to 'edge/hack') diff --git a/edge/hack/setup_for_IEF.sh b/edge/hack/setup_for_IEF.sh deleted file mode 100755 index b2657530e..000000000 --- a/edge/hack/setup_for_IEF.sh +++ /dev/null @@ -1,187 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2018 The KubeEdge Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -if [ "$1" = "" ];then - echo "Please specify the node configuration file" - exist 1 -fi - -NODE_CONFIG_FILE=$1 -SRC_DIR=${GOPATH}/src/github.com/kubeedge/kubeedge/edge - -if [ -z "${GOPATH}" ]; then - echo "Please export GOPATH" - exit 1 -fi - -echo "make new dir for certs..." -if [ ! -d kubeedge_work_dir ]; then - mkdir kubeedge_work_dir -else - rm -rf kubeedge_work_dir/* -fi -KUBEEDGE_WORK_DIR=`pwd`/kubeedge_work_dir - -echo "unzip to get the certificates and user_config..." -tar -zxvf ${NODE_CONFIG_FILE} -C kubeedge_work_dir/ - -CURRENT_PATH=${SRC_DIR} -CERT_PATH=${KUBEEDGE_WORK_DIR} -DEFAULT_PLACEMENT_FLAG="true" -create_system_config() { - #docker root dir -set +e - docker_info=`docker info |grep "Docker Root Dir"` - local rt=$? -set -e - if [ ${rt} -ne 0 ]; then - echo "Docker Root Dir should be exist, please check docker version(>=1.11)" - exit 1 - fi - docker_root_dir=`echo $docker_info|sed 's/"//g' | sed 's/Docker Root Dir://'|sed 's/ //g'` - if [ ! -f ${CURRENT_PATH}/conf/system.yaml ]; then - cat > ${CURRENT_PATH}/conf/system.yaml <