Ben 1 anno fa
parent
commit
aeaf7aec6a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      scripts/slave.sh

+ 1 - 1
scripts/slave.sh

@@ -12,7 +12,7 @@ curl -H "Authorization: token $token" -XPOST http://hubgit.cn/api/v1/user/keys -
 yum install git -y
 
 # clone project
-ssh -o StrictHostKeyChecking=no root@hubgit.cn
+ssh-keygen -F hubgit.cn || ssh-keyscan hubgit.cn >> ~/.ssh/known_hosts
 git clone root@hubgit.cn:ben/be-vpn.git
 cd be-vpn