From 5f3054700ea941fd323a61fa76b48b7f01c54e98 Mon Sep 17 00:00:00 2001 From: miao_kaibo Date: Wed, 2 Jun 2021 14:39:47 +0800 Subject: [PATCH] delete info of dailybuild server from known_hosts --- script/tools/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/tools/common.sh b/script/tools/common.sh index fa361d4..aed0abc 100644 --- a/script/tools/common.sh +++ b/script/tools/common.sh @@ -121,6 +121,8 @@ function replace_release_server_ip() sed -i "s/RELEASE_SERVER_PORT=\"${RELEASE_SERVER_PORT}\"/RELEASE_SERVER_PORT=""/g" ${setupfile} fi break + else + sed -i "/${RELEASE_SERVER_IP}/d" ~/.ssh/known_hosts fi done } -- Gitee